From 06ff212d64084c41bc72c003fdff1d8769b17875 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 8 Feb 2021 17:28:24 +0530 Subject: [documentation] Crypto is an optional dependency --- youtube_dlc/postprocessor/embedthumbnail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'youtube_dlc/postprocessor/embedthumbnail.py') 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) -- cgit v1.2.3