if the url is video with playlist, follow redirect and queue all videos in the playlist.
This commit is contained in:
parent
7849eb8735
commit
d94f004eed
1 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import functools
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
@ -422,7 +423,15 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
|
|
||||||
entry = await asyncio.wait_for(
|
entry = await asyncio.wait_for(
|
||||||
fut=asyncio.get_running_loop().run_in_executor(
|
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,
|
timeout=self.config.extract_info_timeout,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue