On Mon, 30 Jun 2003, Gustavo Sverzut Barbieri wrote: > Okay, > > I tried mmpython from the site, removed > runtime/lib/python2.2/site-packages/mmpython and extracted the new > files to that directory... > > It crashes: > Traceback (most recent call last): > File "src/main.py", line 397, in ? > main_func() > File "src/main.py", line 336, in main_func > osd.focused_app.eventhandler(event) > File "src/menu.py", line 540, in eventhandler > action( menuw=self ) > File "src/directory.py", line 322, in cwd > self.do_cwd(arg, menuw) > File "src/directory.py", line 381, in do_cwd > mmpython.cache_dir(mmpython_dir) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/__init__.py", > line 69, in cache_dir > return object_cache.cache_dir(directory, uncachable_keys) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/cache.py", > line 219, in cache_dir > info = mediainfo.get_singleton().create(file) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/mediainfo.py", > line 603, in __call__ > return self.__method(self.__obj, *args, **kwargs) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/mediainfo.py", > line 554, in create > return self.create_from_filename(name) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/mediainfo.py", > line 523, in create_from_filename > r = self.create_from_file(f) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/mediainfo.py", > line 457, in create_from_file > t = self.extmap[e][3](file) > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/image/pnginfo.py", > line 80, in __init__ > while self._readChunk(file): > File > "/home/gustavo/cvs/freevo/runtime/lib/python2.2/site-packages/mmpython/image/pnginfo.py", > line 96, in _readChunk > meta[key] = value > > > So I replaced meta[] with self.meta[]... it stopped crashing... but the > music player has the same problem... (only show "length" and > "elapsed")...
Dang. Fixed it yesterday but I guess sf cvs didn't yet update :(. > I did some debugging (not much) and I've found that > item.getattr('title') (for example) evaluates to nothing: > eval('item.getattr("title")') => '' Yes. If there is no title encoded in the image, it will be returned as a zero string. We did this to avoid having to catch all the nonexisting attributes. See MediaInfos __str__ perhaps for a template to get all available metainfo. l8r... Thomas ------------------------------------------------------- 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