mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
better mutagen codec detection
This commit is contained in:
parent
c56ded828c
commit
0ae574ec2c
|
@ -433,6 +433,14 @@ class MTag(object):
|
||||||
]:
|
]:
|
||||||
try:
|
try:
|
||||||
v = getattr(md.info, attr)
|
v = getattr(md.info, attr)
|
||||||
|
except:
|
||||||
|
if k != "ac":
|
||||||
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
|
v = str(md.info).split(".")[1]
|
||||||
|
if v.startswith("ogg"):
|
||||||
|
v = v[3:]
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue