Gustavo Sverzut Barbieri wrote:
> One more thing: we should have a dir, configurable via local_conf.py,
> where we should store those .fxd files it they cannot be written in the
> movie dir.

We have: config.MOVIE_DATA_DIR

>
>  --- Gustavo Sverzut Barbieri <[EMAIL PROTECTED]> escreveu: >
> Hello,
>> 
>> Trying to get the imdb cover for a CD with a movie (.avi) inside I
>> found 2 bugs:
>> 
>> 1) It tries to save it in the CD, but it can't :)
>> 
>> 2) There is a buggy code in:
>> 
>> def download_image(url, filename)
>> 
>> there is a block:
>> 
>>     except IOError:
>>         print "Writing image failed"
>>         conn.close()
>>         return None
>> 
>> Where 'conn' doesn't exists! Maybe it's 'r' from:
>>     try:
>>         r = urllib2.urlopen(req)
>> 
>> however, if this is right, where are the other r.close() ?

Well, I got a patch for imdb.py to use urllib2 and a second one with
this exception handling ... Seems like I made an error mixing
them. IIRC we don't need a close at all.


Dischi

-- 
The good thing about standards is that there are so many to choose from.
        -- Andrew S. Tanenbaum


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to