Fixed bug with input ogg files with no genre tag. v0.5.6

file:4766166d9fffbc6760f4c1c29e252e4deabf01a5 -> file:445b78847c814d3ed3ebd6be97e40ae4550a9e7c
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mp3togo (0.5.6) unstable; urgency=low
+
+ * Fixed divide by zero error and missing symbol error.
+ * Fixed missing genre tag in ogg file error.
+ * Thanks to Mark Hewitt for the report and fixes.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Wed, 28 Jun 2006 23:07:04 -0700
+
mp3togo (0.5.5) unstable; urgency=low
* Added support for python-eyeD3 for more robust handling of unicode tags.
file:7ee7774fab25a83486bbea7b7c253e168041e0db -> file:c15a7730fbfb69ca21437296afda6ba1cf7a0c97
--- 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 26 Jun 2006, 19:31
+.\" created by instant / docbook-to-man, Wed 28 Jun 2006, 23:10
file:3135a9af4f1e469d511ac54c3ff190b1f34f68e9 -> file:5d61c926d3b0148a35a4e4cbd3ba6f51a129bd86
--- a/mp3togo/__init__.py
+++ b/mp3togo/__init__.py
@@ -21,5 +21,5 @@
# __all__ = ('converter', 'main', 'options', 'setup')
-version = '0.5.5'
+version = '0.5.6'
file:053280ba65723151df13776373d05752d9fdc41c -> file:d98c380b7f15b79e7d3ea9a59f506bdcb1768036
--- a/mp3togo/conf.py
+++ b/mp3togo/conf.py
@@ -20,7 +20,9 @@
# requires python-pyvorbis and python-id3 and lame
# and mpg321
-import sys, os
+import sys
+import os
+import time
import mp3togo
import mp3togo.options as options
@@ -179,6 +181,7 @@ Description:
# Check for Third party modules:
self.mod['ogg.vorbis'] = False
self.mod['ID3'] = False
+ self.mod['eyeD3'] = False
self.mod['xmms'] = False
# Go ahead and read in the data:
@@ -274,7 +277,7 @@ Description:
def try_print(msg):
"""Try to print a message to a nonblocking stdout"""
- for i in range(5):
+ for i in range(1, 6):
try:
sys.stdout.write(msg)
return
file:1803b06b3abe74d35e87d9b1bdbfe59601599596 -> file:ab0d20ff33a1a3a856ef91566faf7a3fd4702cdd
--- a/mp3togo/tags.py
+++ b/mp3togo/tags.py
@@ -90,6 +90,8 @@ class Tags(UserDict.DictMixin):
o = {}
for k in d.keys():
o[k] = list(d[k])
+ if not o.has_key('GENRE'):
+ o['GENRE'] = 'Other'
return o
if self._type == 'mp3' and HAVE_ID3:
@@ -99,7 +101,7 @@ class Tags(UserDict.DictMixin):
self._tags['ARTIST'] = [eye.getArtist() or '']
self._tags['ALBUM'] = [eye.getAlbum() or '']
self._tags['TITLE'] = [eye.getTitle() or '']
- self._tags['GENRE'] = [eye.getGenre().name or '']
+ self._tags['GENRE'] = [eye.getGenre().name or 'Other']
del eye
elif HAVE_ID3:
info = ID3.ID3(self._file, as_tuple=1).as_dict()