Hello! I am experimenting with teaching the subdownloader project how to identify rar:ed movies (in the same way that vlc and XBMC can play rar:ed movies without unpacking). This has been pretty simple to with the help of the rarfile module except when it comes to the use of the kaa.metadata module.
kaa.metadata.parse expects a filename as input, which is pretty cumbersome for me since this requires me to unpack a part of the movie in a temp-file and use this as input. This is quite inefficient since the rarfile module can create a File object that allows direct reading of a file contained in the rar-file. After looking through metadata.parse, it seems that a File-like object is created from the filename in any case, so changing parse so that it can accept a File object should't be very hard. Just changing the create() function in factory.py to check if name is actually a File-object and calling create_from_file directly should do the trick. I would therefore like to submit this as a feature request. (I would have sent a patch with some code, but I am relatively new to python and don't really know how to check if the input is a valid File-like object.) Best regards, //Leo ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users