Package: eyed3
Version: 0.6.16

$ eyeD3 --no-color --to-v1.1 --strict sc.mp3

sc.mp3  [ 5.10 MB ]
-------------------------------------------------------------------------------
Time: 03:35     MPEG1, Layer III        [ ~198 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
Converting tag to ID3 version v1.1
Writing tag...
Uncaught exception: Invalid genre name: Hip Hop/Rap
Traceback (most recent call last):
  File "/usr/bin/eyeD3", line 1166, in <module>
    retval = main();
  File "/usr/bin/eyeD3", line 1143, in main
    retval = app.handleFile(f);
  File "/usr/bin/eyeD3", line 535, in handleFile
    if not self.tag.update(updateVersion):
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 523, in update
    self.__saveV1Tag(version);
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 1082, in 
__saveV1Tag
    if not self.getGenre() or self.getGenre().getId() is None:
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 648, in getGenre
    g.parse(f[0].text);
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 1528, in parse
    self.setName(genreStr);
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 1446, in setName
    raise GenreException("Invalid genre name: " + name);
GenreException: Invalid genre name: Hip Hop/Rap

Well, why don't you at least return non zero to the shell?
Now I have to do
    eyeD3 --to-v1.1 --strict --no-color "$i" 2>&1|tee $results #or try id3v2(1)
    grep -q 'Uncaught exception' $results && exit 54
just to catch this error!

Affects bug 481678 too.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to