mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-04 19:30:13 +00:00
use check_formats to validate thumb url, #83
This commit is contained in:
parent
72bc6a4d02
commit
15845da3a8
@ -135,6 +135,7 @@ class PendingList:
|
|||||||
"default_search": "ytsearch",
|
"default_search": "ytsearch",
|
||||||
"quiet": True,
|
"quiet": True,
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
|
"check_formats": True,
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
||||||
|
@ -283,6 +283,7 @@ class YoutubeVideo:
|
|||||||
"quiet": True,
|
"quiet": True,
|
||||||
"default_search": "ytsearch",
|
"default_search": "ytsearch",
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
|
"check_formats": True,
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
vid = youtube_dl.YoutubeDL(obs).extract_info(youtube_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user