From 8148c2a0974cfe2550e0b1f2aa8400719dfd081d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 6 Mar 2023 12:25:12 +0100 Subject: [PATCH] [downloader:ytdl] prevent exception on empty results https://github.com/mikf/gallery-dl/commit/a7c79531078e3c34f4d8ae8f70a8cd52cc3b504f#commitcomment-92042240 --- gallery_dl/downloader/ytdl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py index c44ea0a5..adada752 100644 --- a/gallery_dl/downloader/ytdl.py +++ b/gallery_dl/downloader/ytdl.py @@ -64,6 +64,8 @@ class YoutubeDLDownloader(DownloaderBase): try: info_dict = ytdl_instance.extract_info(url[5:], download=False) except Exception: + pass + if not info_dict: return False if "entries" in info_dict: