From 52e8fbec117cb9e5841e8c49d8aec146d6f94c3c Mon Sep 17 00:00:00 2001 From: jaskaranSM Date: Sun, 29 Mar 2020 13:52:41 +0530 Subject: [PATCH] Fixed direct link torrent mirroring Signed-off-by: lzzy12 --- .../mirror_utils/download_utils/youtube_dl_download_helper.py | 2 ++ 1 file changed, 2 insertions(+) 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']: