Update 'deemix/utils/taggers.py'

Fix for Mp3 cover art not showing up in macos Catalina default music app.

Credit: u/hpycndl on reddit
This commit is contained in:
JhonnyMnemonic320 2020-05-09 12:06:33 +00:00
parent ef1a69a332
commit 0cd9f8e076
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def tagID3(stream, track, save):
if save['cover'] and track['album']['picPath']:
with open(track['album']['picPath'], 'rb') as f:
tag.add(
APIC(3, 'image/jpeg' if track['album']['picPath'].endswith('jpg') else 'image/png', 3, data=f.read()))
APIC(3, 'image/jpeg' if track['album']['picPath'].endswith('jpg') else 'image/png', 3, desc='cover', data=f.read()))
tag.save(stream, v1=2 if save['saveID3v1'] else 0, v2_version=3,
v23_sep=None if save['useNullSeparator'] else ' / ')