diff --git a/bot/helper/mirror_utils/download_utils/youtube_dl_download_helper.py b/bot/helper/mirror_utils/download_utils/youtube_dl_download_helper.py index eff6aa6..c4c9a5d 100644 --- a/bot/helper/mirror_utils/download_utils/youtube_dl_download_helper.py +++ b/bot/helper/mirror_utils/download_utils/youtube_dl_download_helper.py @@ -72,6 +72,8 @@ class YoutubeDLHelper(DownloadHelper): with YoutubeDL(self.opts) as ydl: result = ydl.extract_info(link, download=False) name = ydl.prepare_filename(result) + if result.get('direct'): + return None if 'entries' in result: video = result['entries'][0] for v in result['entries']: