[downloader:ytdl] prevent exception on empty results
a7c7953107 (commitcomment-92042240)
This commit is contained in:
@@ -64,6 +64,8 @@ class YoutubeDLDownloader(DownloaderBase):
|
|||||||
try:
|
try:
|
||||||
info_dict = ytdl_instance.extract_info(url[5:], download=False)
|
info_dict = ytdl_instance.extract_info(url[5:], download=False)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
pass
|
||||||
|
if not info_dict:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if "entries" in info_dict:
|
if "entries" in info_dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user