Fixed uncaught exception thrown by eyeD3 on 2 digit years.

file:448334f7040a186a0545b7a1f47e8d0211867e44 -> file:e245e6a9c7ec529deb6d559f7f540439675b03ab
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
mp3togo
-(C) 2004 - 2006 Simeon Veldstra <reallifesim@gmail.com>
+(C) 2004 - 2007 Simeon Veldstra <reallifesim@gmail.com>
INSTALLING
file:e58b52ea0cf000ab21833d0415e8ceb5b7f0e079 -> file:d9ac0f57ffd4c8179d64a0241ed26d7f8df74753
--- a/copyright
+++ b/copyright
@@ -2,7 +2,7 @@ mp3togo
Software to manage playlists for mp3 players.
-(C) Copyright 2004-2006 Simeon Veldstra <reallifesim@gmail.com>
+(C) Copyright 2004-2007 Simeon Veldstra <reallifesim@gmail.com>
Some rights reserved.
This software is free and may be redistributed under the
file:834a64f089d2cfea8044768ba7fcaf6195832e97 -> file:6da6366157a9b08e397274896ff1b0f8ece1f114
--- a/debian/mp3togo.1
+++ b/debian/mp3togo.1
@@ -134,4 +134,4 @@ License can be found in /usr/share/commo
.PP
mp3togo can be found online at http://puddle.ca/mp3togo
-.\" created by instant / docbook-to-man, Mon 12 Feb 2007, 19:29
+.\" created by instant / docbook-to-man, Thu 15 Feb 2007, 17:18
file:8e07bbe07cbe212e0899b99837e4fa008d80135a -> file:ed23920e9d36998940bee44539526d553a688319
--- a/mp3togo/tags.py
+++ b/mp3togo/tags.py
@@ -95,18 +95,23 @@ class Tags(UserDict.DictMixin):
return o
if self._type == 'mp3' and HAVE_ID3:
+ rok = False
if HAVE_eyeD3:
eye = eyeD3.Tag()
- eye.link(self._file)
- self._tags['ARTIST'] = [eye.getArtist() or '']
- self._tags['ALBUM'] = [eye.getAlbum() or '']
- self._tags['TITLE'] = [eye.getTitle() or '']
try:
- self._tags['GENRE'] = [getattr(eye.getGenre(), 'name', 'Other')]
- except eyeD3.tag.GenreException:
- self._tags['GENRE'] = 'Other'
- del eye
- elif HAVE_ID3:
+ eye.link(self._file)
+ self._tags['ARTIST'] = [eye.getArtist() or '']
+ self._tags['ALBUM'] = [eye.getAlbum() or '']
+ self._tags['TITLE'] = [eye.getTitle() or '']
+ try:
+ self._tags['GENRE'] = [getattr(eye.getGenre(), 'name', 'Other')]
+ except eyeD3.tag.GenreException:
+ self._tags['GENRE'] = 'Other'
+ del eye
+ rok = True
+ except eyeD3.tag.TagException:
+ pass
+ if HAVE_ID3 and not rok:
info = ID3.ID3(self._file, as_tuple=1).as_dict()
self._tags = copytags(info)
del info