work on player

This commit is contained in:
bkfox
2016-12-09 19:38:27 +01:00
parent a7197cc4f7
commit 7752e37b74
6 changed files with 49 additions and 16 deletions

View File

@ -999,7 +999,10 @@ class Sound(Nameable):
return None
import mutagen
meta = mutagen.File(self.path)
try:
meta = mutagen.File(self.path)
except:
meta = {}
def get_meta(key, cast=str):
value = meta.get(key)