Use audio/flac as MIME type for flac files as this seems now to be the norm

This commit is contained in:
Jean-Francois Dockes
2022-08-02 15:01:05 +02:00
parent 34e88e587d
commit 4954c1d855
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ class AudioTagExtractor(RclBaseHandler):
if tagname.startswith('APIC:'):
#self.em.rclog("mp3 img: %s" % mutf[tagname].mime)
return 'jpg' if mutf[tagname].mime == 'image/jpeg' else 'png'
elif 'audio/x-flac' in mime:
elif 'flac' in mime:
if mutf.pictures:
return 'jpg' if mutf.pictures[0].mime == 'image/jpeg' else 'png'
elif 'audio/mp4' in mime: