mirror of
https://github.com/9001/copyparty.git
synced 2026-01-17 10:39:19 +10:00
better mutagen codec detection
This commit is contained in:
@@ -434,7 +434,15 @@ class MTag(object):
|
||||
try:
|
||||
v = getattr(md.info, attr)
|
||||
except:
|
||||
continue
|
||||
if k != "ac":
|
||||
continue
|
||||
|
||||
try:
|
||||
v = str(md.info).split(".")[1]
|
||||
if v.startswith("ogg"):
|
||||
v = v[3:]
|
||||
except:
|
||||
continue
|
||||
|
||||
if not v:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user