cc-4329: Fixed this by adding liquid soap playability test from mm1

This commit is contained in:
Rudi Grinberg 2012-08-31 14:53:45 -04:00
parent 3eac8c8531
commit 434bcf15ab
2 changed files with 18 additions and 0 deletions

View file

@ -161,6 +161,8 @@ class Metadata(Loggable):
# Forcing the unicode through
try : fpath = fpath.decode("utf-8")
except : pass
if not mmp.file_playable(fpath):
raise BadSongFile(fpath)
try : full_mutagen = mutagen.File(fpath, easy=True)
except Exception : raise BadSongFile(fpath)
self.path = fpath