diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-11 04:07:25 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-11 04:46:53 +0530 |
commit | 00034c146a2d8c84d7fc388c64eb29916105b754 (patch) | |
tree | 6525051b5c283052a024b0f2609af9d86a8691e1 /yt_dlp/postprocessor/embedthumbnail.py | |
parent | 325ebc1703beaa25074553242bb0a9b1399e699b (diff) | |
download | hypervideo-pre-00034c146a2d8c84d7fc388c64eb29916105b754.tar.lz hypervideo-pre-00034c146a2d8c84d7fc388c64eb29916105b754.tar.xz hypervideo-pre-00034c146a2d8c84d7fc388c64eb29916105b754.zip |
[embedthumbnail] Fix `_get_thumbnail_resolution`
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 48d4b673d..7008f4d4d 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -51,7 +51,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): try: size_regex = r',\s*(?P<w>\d+)x(?P<h>\d+)\s*[,\[]' - size_result = self.run_ffmpeg(filename, filename, ['-hide_banner']) + size_result = self.run_ffmpeg(filename, None, ['-hide_banner'], expected_retcodes=(1,)) mobj = re.search(size_regex, size_result) if mobj is None: return guess() |