mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 10:50:38 +00:00
[pp/embedthumbnail] Fix embedding with mutagen (#10337)
Fixes regression in f2a4ea1794
Closes #10335
Authored by: bashonly
This commit is contained in:
parent
773bbb1815
commit
d502f4c6d9
@ -134,7 +134,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
|
|||||||
meta = MP4(filename)
|
meta = MP4(filename)
|
||||||
# NOTE: the 'covr' atom is a non-standard MPEG-4 atom,
|
# NOTE: the 'covr' atom is a non-standard MPEG-4 atom,
|
||||||
# Apple iTunes 'M4A' files include the 'moov.udta.meta.ilst' atom.
|
# Apple iTunes 'M4A' files include the 'moov.udta.meta.ilst' atom.
|
||||||
meta.tags['covr'] = [MP4Cover(data=thumb_data, imageformat=f)]
|
meta.tags['covr'] = [MP4Cover(data=thumb_data, imageformat=f[type_])]
|
||||||
meta.save()
|
meta.save()
|
||||||
temp_filename = filename
|
temp_filename = filename
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
Loading…
Reference in New Issue
Block a user