Ok, 

I have some exams here in the uni, so I'll wait dischi to integrate it.


Gustavo


 --- den_RDC <[EMAIL PROTECTED]> escreveu: > Do you use the imdb
plugin?
> I remeber it had this issue too, it didn't write media-id's and tried
> to place 
> files on cd/dvd media. I sent a fix to Dischi a few days ago and it
> got into 
> cvs. But as i see it, it still has a bug, i think it got in with the
> mmpython 
> patches. Try this
> 
> Line 158 , change the last None to 1
> 
> change this block of code (around line 227) 
> <--
> if self.item.media and self.item.media.id: 
>      filename = os.path.join(config.MOVIE_DATA_DIR,
> self.item.media.id)
>      device   = self.item.media.devicename
>      # bad hack to set the drive, helpers/imdb.py really needs
>      # a bigger update
>      helpers.imdb.drive = self.item.media.devicename
> else:
>      filename = os.path.splitext(self.item.filename)[0]
>      device   = None
> 
> helpers.imdb.get_data_and_write_fxd(arg[0], filename, device, None,
>                          (os.path.basename(self.item.filename), ),
> None)
> -->
> 
> to this
> <--
> if self.item.media and self.item.media.id: 
>      filename = os.path.join(config.MOVIE_DATA_DIR,
> self.item.media.id)
>      device   = self.item.media.devicename
>      # bad hack to set the drive, helpers/imdb.py really needs
>      # a bigger update
>      helpers.imdb.drive = self.item.media.devicename
>      helpers.imdb.get_data_and_write_fxd(arg[0], filename, device,
> None,
>                               (os.path.basename(self.item.filename),
> ), 1)
> else:
>      filename = os.path.splitext(self.item.filename)[0]
>      device   = None
>      helpers.imdb.get_data_and_write_fxd(arg[0], filename, device,
> None,
>                                (os.path.basename(self.item.filename),
> ), None)
> -->
> 
> Dishi says he will be working on giving both imdb.py's a decent
> overhaul 
> sometime...
> 
> 
> On Monday 30 June 2003 17:33, Gustavo Sverzut Barbieri wrote:
> > So, would be nice if Freevo already comes with that directory and
> > Freevo
> > generate a fxd using the discid, now it generates:
> >
> >    <movie title="AntiTrust">
> >     <video>
> >         <file id="p1">antitrust.avi</file>
> >     </video>
> >   </movie>
> >
> > but to make it work i need:
> >
> >   <disc-set title="AntiTrust">
> >     <cover-img source="images.amazon.com">antitrust.jpg</cover-img>
> >     <disc media-id="2003062922213900Anti-Trust" />
> >
> >
> > Since it's on the CD... media-id is the result of getCDID() and
> it's
> > the name of the file named by freevo.
> >
> >
> > Gustavo
> >
> >  --- Dirk Meyer <[EMAIL PROTECTED]> escreveu: > 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
> >
> >
>
_______________________________________________________________________
> > Yahoo! Mail
> > Mais espaço, mais segurança e gratuito: caixa postal de 6MB,
> antivírus,
> > proteção contra spam. http://br.mail.yahoo.com/
> >
> >
> > -------------------------------------------------------
> > 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
> 
> 
> 
> -------------------------------------------------------
> 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 

_______________________________________________________________________
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/


-------------------------------------------------------
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