diff options
author | Mattia Rizzolo <mattia@debian.org> | 2015-12-13 18:21:11 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@debian.org> | 2015-12-13 18:21:11 +0100 |
commit | 2d7ce7ef2319d3acdbd4ebe1a3660307bd2ddf5e (patch) | |
tree | 0454584d1b41118758b2d2a2d40d1db4d94bcfd4 /debian/patches/64_catch_id3_error.patch | |
parent | 97d87e1fa0808cf747bf0a4fe3b39d1cbdb5efc8 (diff) |
jack (3.1.1+cvs20050801-29.1) unstable; urgency=medium
* Non-maintainer upload.
* Build with dh-python instead of python-support. Closes: #786042
* Update watch file.
[dgit import package jack 3.1.1+cvs20050801-29.1]
Diffstat (limited to 'debian/patches/64_catch_id3_error.patch')
-rw-r--r-- | debian/patches/64_catch_id3_error.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/64_catch_id3_error.patch b/debian/patches/64_catch_id3_error.patch new file mode 100644 index 0000000..f4d1291 --- /dev/null +++ b/debian/patches/64_catch_id3_error.patch @@ -0,0 +1,29 @@ +eyeD3 only accepts years that have 4 digits; catch the exception in case +the year contains something else. Debian bug http://bugs.debian.org/478784 + +--- a/jack_tag.py 2008-05-04 16:28:14.000000000 +0200 ++++ b/jack_tag.py 2008-05-04 16:38:50.000000000 +0200 +@@ -112,7 +112,10 @@ + if cf['_id3_genre'] != -1: + tag.setGenre("(%d)" % (cf['_id3_genre'])) + if cf['_id3_year'] != -1: +- tag.setDate(cf['_id3_year']) ++ try: ++ tag.setDate(cf['_id3_year']) ++ except eyeD3.tag.TagException, e: ++ print "Error tagging file: %s" % e + tag.setPlayCount(int(i[LEN] * 1000.0 / 75 + 0.5)) + tag.update() + mp3file.close() +@@ -139,7 +142,10 @@ + elif old_genre == None: + tag.setGenre("(255)") # unknown + if cf['_id3_year'] != -1: +- tag.setDate(cf['_id3_year']) ++ try: ++ tag.setDate(cf['_id3_year']) ++ except eyeD3.tag.TagException, e: ++ print "Error tagging file: %s" % e + try: + tag.update() + except UnicodeEncodeError: |