From d94f004eedd0027b9f0de386f3185b7e1124b305 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 15 Mar 2025 01:29:58 +0300 Subject: [PATCH] if the url is video with playlist, follow redirect and queue all videos in the playlist. --- app/library/DownloadQueue.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index 757b22c1..c58d7233 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -1,4 +1,5 @@ import asyncio +import functools import json import logging import os @@ -422,7 +423,15 @@ class DownloadQueue(metaclass=Singleton): entry = await asyncio.wait_for( fut=asyncio.get_running_loop().run_in_executor( - None, extract_info, yt_conf, url, bool(self.config.ytdl_debug) + None, + functools.partial( + extract_info, + config=yt_conf, + url=url, + debug=bool(self.config.ytdl_debug), + no_archive=False, + follow_redirect=True, + ), ), timeout=self.config.extract_info_timeout, )