--- a/dir2ogg +++ b/dir2ogg @@ -38,8 +38,8 @@ from fnmatch import _cache, translate from optparse import OptionParser from subprocess import Popen, call, PIPE -__version__ = '0.11.6' -__date__ = '2008-07-14' +__version__ = '0.11.6+bug272341' +__date__ = '2008-09-21' FILTERS = {'mp3': ('*.mp3',), 'm4a': ('*.aac', '*.m4a', '*.mp4'), @@ -428,6 +428,16 @@ class Convert(Id3TagHandler): import traceback traceback.print_exc() return False + else: + import mutagen + in_length = mutagen.File(self.song).info.length + out_length = myogg.info.length + diff = (out_length - in_length) + if abs(diff) > 1: + print >> sys.stderr + warn('Length changed (%s sec). If the file does not ' + 'work, try a different decoder.\n' % int(diff)) + elif self.songwav != self.song or 'cd-' in self.decoder: warn('No tags found...')