diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-08 17:28:24 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-08 18:05:22 +0530 |
commit | 06ff212d64084c41bc72c003fdff1d8769b17875 (patch) | |
tree | 34c9d9c6aaa359cd22ca31e966380ce290690fc7 /youtube_dlc/postprocessor/embedthumbnail.py | |
parent | 1bf540d28b9a53112532aefde12188db5b327891 (diff) | |
download | hypervideo-pre-06ff212d64084c41bc72c003fdff1d8769b17875.tar.lz hypervideo-pre-06ff212d64084c41bc72c003fdff1d8769b17875.tar.xz hypervideo-pre-06ff212d64084c41bc72c003fdff1d8769b17875.zip |
[documentation] Crypto is an optional dependency
Diffstat (limited to 'youtube_dlc/postprocessor/embedthumbnail.py')
-rw-r--r-- | youtube_dlc/postprocessor/embedthumbnail.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dlc/postprocessor/embedthumbnail.py b/youtube_dlc/postprocessor/embedthumbnail.py index da6b6797f..a54db77f0 100644 --- a/youtube_dlc/postprocessor/embedthumbnail.py +++ b/youtube_dlc/postprocessor/embedthumbnail.py @@ -10,9 +10,9 @@ import base64 try: import mutagen - _has_mutagen = True + has_mutagen = True except ImportError: - _has_mutagen = False + has_mutagen = False from .ffmpeg import FFmpegPostProcessor @@ -153,7 +153,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): success = False elif info['ext'] in ['ogg', 'opus']: - if not _has_mutagen: + 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) |