aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-30 16:43:54 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-30 16:49:58 +0530
commite3b771a898728fd5df406104f2a18eeaf98ea654 (patch)
tree720e58588999cc32c589bb78bbc0daf8fa157bbe /youtube_dlc/postprocessor/embedthumbnail.py
parentcac96421d9f736e2b463c4bb170f67874fb04055 (diff)
downloadhypervideo-pre-e3b771a898728fd5df406104f2a18eeaf98ea654.tar.lz
hypervideo-pre-e3b771a898728fd5df406104f2a18eeaf98ea654.tar.xz
hypervideo-pre-e3b771a898728fd5df406104f2a18eeaf98ea654.zip
fix typos :ci skip dl
Diffstat (limited to 'youtube_dlc/postprocessor/embedthumbnail.py')
-rw-r--r--youtube_dlc/postprocessor/embedthumbnail.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dlc/postprocessor/embedthumbnail.py b/youtube_dlc/postprocessor/embedthumbnail.py
index 24750e3bd..334e05955 100644
--- a/youtube_dlc/postprocessor/embedthumbnail.py
+++ b/youtube_dlc/postprocessor/embedthumbnail.py
@@ -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)