Formatted code better and added TODO
This commit is contained in:
parent
30c95f3e9d
commit
4d9fbaf216
2 changed files with 4 additions and 0 deletions
|
@ -163,9 +163,12 @@ 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
|
||||
if not os.path.exists(self.path):
|
||||
self.logger.info("Attempting to read metadata of file \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue