mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-17 21:25:49 +00:00
speedup by only testing selected formats
This commit is contained in:
parent
5401722d88
commit
d95bf4272c
@ -140,9 +140,10 @@ class PendingList:
|
|||||||
obs = {
|
obs = {
|
||||||
"default_search": "ytsearch",
|
"default_search": "ytsearch",
|
||||||
"quiet": True,
|
"quiet": True,
|
||||||
"skip_download": True,
|
"check_formats": "selected",
|
||||||
"check_formats": True,
|
|
||||||
"noplaylist": True,
|
"noplaylist": True,
|
||||||
|
"writethumbnail": True,
|
||||||
|
"simulate": True,
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
||||||
@ -617,7 +618,7 @@ class VideoDownloader:
|
|||||||
"retries": 3,
|
"retries": 3,
|
||||||
"writethumbnail": False,
|
"writethumbnail": False,
|
||||||
"noplaylist": True,
|
"noplaylist": True,
|
||||||
"check_formats": True,
|
"check_formats": "selected",
|
||||||
}
|
}
|
||||||
if self.config["downloads"]["format"]:
|
if self.config["downloads"]["format"]:
|
||||||
obs["format"] = self.config["downloads"]["format"]
|
obs["format"] = self.config["downloads"]["format"]
|
||||||
|
@ -311,7 +311,7 @@ class YoutubeVideo:
|
|||||||
"quiet": True,
|
"quiet": True,
|
||||||
"default_search": "ytsearch",
|
"default_search": "ytsearch",
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
"check_formats": True,
|
"check_formats": "selected",
|
||||||
"noplaylist": True,
|
"noplaylist": True,
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user