Commits

Anonymous committed ca8bc8f

using filename as artist tag when mp3/ogg header of a file is erroneous

  • Participants
  • Parent commits 810945f

Comments (0)

Files changed (1)

pythaules/common/file.py

                     audiofile = EasyID3(filename)
 		except mutagen.id3.ID3NoHeaderError, msg:
 		    print msg
+                    audiofile = dict(title=filename)
             elif suffix == '.ogg':
                 import mutagen.oggvorbis
                 self._filetype = 'ogg'
                     audiofile = mutagen.oggvorbis.Open(filename)
 		except mutagen.oggvorbis.OggVorbisHeaderError, msg:
                     print msg
+                    audiofile = dict(title=filename)
             elif suffix == '.flac':
                 import mutagen.flac
                 self._filetype = 'flac'