aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader/ytdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/downloader/ytdl.py')
-rw-r--r--gallery_dl/downloader/ytdl.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py
index 40cddec..1242098 100644
--- a/gallery_dl/downloader/ytdl.py
+++ b/gallery_dl/downloader/ytdl.py
@@ -48,6 +48,13 @@ class YoutubeDLDownloader(DownloaderBase):
self.log.debug("", exc_info=exc)
self.download = lambda u, p: False
return False
+
+ try:
+ ytdl_version = module.version.__version__
+ except Exception:
+ ytdl_version = ""
+ self.log.debug("Using %s version %s", module, ytdl_version)
+
self.ytdl_instance = ytdl_instance = ytdl.construct_YoutubeDL(
module, self, self.ytdl_opts)
if self.outtmpl == "default":