1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-06 13:48:20 -04:00

fix typos :ci skip dl

This commit is contained in:
pukkandan
2021-01-30 16:43:54 +05:30
parent cac96421d9
commit e3b771a898
8 changed files with 17 additions and 15 deletions

View File

@@ -154,6 +154,8 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
elif info['ext'] in ['ogg', 'opus']:
if not _has_mutagen:
raise EmbedThumbnailPPError('module mutagen was not found. Please install using `python -m pip install mutagen`')
self.to_screen('Adding thumbnail to "%s"' % filename)
size_regex = r',\s*(?P<w>\d+)x(?P<h>\d+)\s*[,\[]'
size_result = self.run_ffmpeg(thumbnail_filename, thumbnail_filename, ['-hide_banner'])
mobj = re.search(size_regex, size_result)