On Wednesday 26 November 2003 18:39, Wayne Hogue wrote: > Im calling: > ... > variant = makePart(somefile, someid) > fxd.setVariants(variant) > ... > fxd.writeFxd() > > > Traceback (most recent call last): > File "/usr/local/freevo/src/helpers/imdb.py", line 215, in ? > fxd.writeFxd() > File "/usr/local/freevo/src/video/fxdimdb.py", line 357, in writeFxd > self.write_movie() > File "/usr/local/freevo/src/video/fxdimdb.py", line 541, in write_movie > i.write(self.print_variant()) > File "/usr/local/freevo/src/video/fxdimdb.py", line 873, in print_variant > if self.varmpl_opt: > AttributeError: FxdImdb instance has no attribute 'varmpl_opt' > >
Try this (i haven't tested it, but it should work) fxdimdb.py, line 133 self.varmpl_opt = None (instead of self.var_mplopt = [] i think) If it works, please mail back so it can be fixed in CVS. Mvg den_RDC > From: den_RDC <[EMAIL PROTECTED]> > > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: Re: [Freevo-devel] bug in fxdimdb.py print_variant(self) > >Date: Wed, 26 Nov 2003 17:47:57 +0100 > > > >On Wednesday 26 November 2003 17:23, Wayne Hogue wrote: > > > When i try to setVatiant w/o a mplayer_opts I get an error in > > > print_variant() attribute undefined. I beleive the mplayer_opt is > > > >optional > > > > > for variants. > > > > > > if self.varmpl_opt: > > > ret += ' mplayer-options=\"%s\">\n' % > > > self.str2XML(self.varmpl_opt) > > > else: i > > > ret += '>\n' > > > > > > I worked around it by commenting out the if else and letting it fall > > > through to the closing tag. This however will not add the mplayer_opt > > > when it is present in the variant tag so its not a fix, but works for > > > my purposes. > > > > > > -Wayne > > > >Could u give me some more information, like a traceback, wich functions u > >called before trying to write the fxd, and the data passed to fxdimdb? > >The mplayer options are indeed optional. I am on the bugs tail, but i need > >some more info :) > > > >Mvg > >den_RDC > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Freevo-devel mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/freevo-devel > > _________________________________________________________________ > Is there a gadget-lover on your gift list? MSN Shopping has lined up some > good bets! http://shopping.msn.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Freevo-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/freevo-devel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel