Dirk Meyer wrote:
> Jason Tackaberry wrote:
>
>> On Fri, 2006-11-03 at 19:51 +0100, Hans Meine wrote:
>>
>>> On Friday 03 November 2006 18:50, SourceForge.net wrote:
>>> I know this error, it happens when a string contains NULL bytes.
>>> A simple way to fix this in this case would be to add an if.. statement
>>> around
>>> the code in read_m3u() and simply skip the file. (Yes, I guess it's
>>> a "broken" .m3u file.)
>>>
>> It'd be better to truncate the string after the first null and try that
>> path. A bit more robust behavior.
>>
>
> And print a warning in that case.
I'm wondering how a nul get's into a play-list file. (I can vi it with ^V^@)
Anyway what I've done is to catch the TypeError and print the file and
line where is occurred, this way the error can be seen and fixed.
Sightly off topic:
I'm having trouble with kaa.metadata in two areas, in rel-1
1) Creating directory metadata.... takes a long time, every time.
2) I don't seem to be able to catch eyed3info errors in freevo cache
with out the trace-back.
ERROR eyed3info(130): mp3 tag parsing
/freevo/music/D-12_-_D-12_World/21. Keep Talkin [Bonus].mp3 failed!
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
It's very possible that the mp3 file is broken, i had to repair a very
scratch cd and the last three tracks were unrepairable. The file sizes
are less than 1K. Would like a better message than a trace-back from cache.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel