diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2021-05-23 19:17:21 +0200 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-23 23:03:08 +0530 |
commit | f17c70227055a4415f604d644704eec9c3f4fe21 (patch) | |
tree | 388d977f9cbf717bafde5221533791e1b05f3466 /yt_dlp/postprocessor/embedthumbnail.py | |
parent | 3907333c5db9a05ab37624fdcaa6ec3ed729f2aa (diff) | |
download | hypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.tar.lz hypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.tar.xz hypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.zip |
[ard] Allow URLs without `-` before id
https://github.com/ytdl-org/youtube-dl/pull/29091
Authored by: olifre
Diffstat (limited to 'yt_dlp/postprocessor/embedthumbnail.py')
-rw-r--r-- | yt_dlp/postprocessor/embedthumbnail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index 9923ef6a4..2d736a31a 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -128,7 +128,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): meta = MP4(filename) # NOTE: the 'covr' atom is a non-standard MPEG-4 atom, # Apple iTunes 'M4A' files include the 'moov.udta.meta.ilst' atom. - f = {'jpeg': MP4Cover.FORMAT_JPEG, 'png':MP4Cover.FORMAT_PNG}[imghdr.what(thumbnail_filename)] + f = {'jpeg': MP4Cover.FORMAT_JPEG, 'png': MP4Cover.FORMAT_PNG}[imghdr.what(thumbnail_filename)] with open(thumbnail_filename, 'rb') as thumbfile: thumb_data = thumbfile.read() meta.tags['covr'] = [MP4Cover(data=thumb_data, imageformat=f)] |