mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-07 15:25:12 +01:00
[embedthumbnail] Fix _get_thumbnail_resolution
This commit is contained in:
parent
325ebc1703
commit
00034c146a
2 changed files with 7 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue