Dirk Meyer wrote:
> Duncan Webb wrote:
>> I've started to implement the kaa metadata into freevo rel-1
> 
> Great. In a perfect world you only have to replace 'import mmpython'
> with 'import kaa.metadata as mmpython' and you are done. But the world
> is not perfect as it seems ...

Done this...

>> one thing I'm a bit stuck on is in src/image/__init__.py it makes a
>> call to from mmpython.image import bins There doesn't seem to be a
>> bins module in the metadata, does it have a new name?
> 
> The bins code is completely rewritten. It is in image/core and
> misc/directory (it looks like you need the later for the stuff). But
> the bins support is a feature we also should discuss. It takes time to
> check this and I guess close to nobody uses it. But for 2.0 it doesn't
> matter, beacon will use that code and it is cached.

I did manage to get it to work, but I'm not 100% is this is the correct
way to get the information.

    def dirinfo(self, diritem):
        """
        set informations for a diritem based on album.xml
        """
        dirinfo  = bins.DirInfo(diritem.dir)
        if dirinfo.has_key('desc'):
            info = dirinfo['desc']



>> The second problem that I've run into is freevo cache now complains
>> about webradio.fxd not being a directory. Has this functionality been
>> removed for metadata or is there another way to do this?
> 
> I have no idea how this can happen. Mmpython never had support for
> parsing fxd files. You need to take a deeper look / send me the
> correct log message.

All it says is:
creating playlist metadata............................
bad path: /freevo/fxdfiles/webradio.fxd    done

The file exists but it's not a directory.

Higher up in the cache there are a few problems with the eyed3info no
being able to process some music files.

Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/kaa/metadata/audio/eyed3info.py", line
110, in __init__
    id3 = eyeD3_tag.Mp3AudioFile(file.name)
  File
"/usr/lib/python2.4/site-packages/kaa/metadata/audio/eyeD3/tag.py", line
1548, in __init__
    raise InvalidAudioFormatException("Unable to find a valid mp3 "\
InvalidAudioFormatException: Unable to find a valid mp3 frame

The file does contain id tags but the header is incorrect.

mp3info reports the data correctly, this was not a problem with mmpython.


Duncan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to