Fixed direct link torrent mirroring

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
jaskaranSM 2020-03-29 13:52:41 +05:30 committed by lzzy12
parent 3754e8b3ce
commit 52e8fbec11

View File

@ -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']: