revert wrong flac embedded img test change from 4954c1d8

This commit is contained in:
Jean-Francois Dockes 2022-08-04 13:58:55 +02:00
parent 4954c1d855
commit 5a3b366911

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 'flac' in mime:
elif 'audio/flac' in mime:
if mutf.pictures:
return 'jpg' if mutf.pictures[0].mime == 'image/jpeg' else 'png'
elif 'audio/mp4' in mime: