++
This commit is contained in:
@@ -31,7 +31,7 @@ def _extract_info(url: str) -> Dict:
|
|||||||
"quiet": True,
|
"quiet": True,
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
"noprogress": True,
|
"noprogress": True,
|
||||||
"extractor_args": {"youtube": {"player_client": ["android", "web"]}},
|
"extractor_args": {"youtube": {"player_client": ["ios", "tv_embedded"]}},
|
||||||
}
|
}
|
||||||
with YoutubeDL(ydl_opts) as ydl:
|
with YoutubeDL(ydl_opts) as ydl:
|
||||||
return ydl.extract_info(url, download=False)
|
return ydl.extract_info(url, download=False)
|
||||||
@@ -150,7 +150,7 @@ def download():
|
|||||||
"noprogress": True,
|
"noprogress": True,
|
||||||
"restrictfilenames": True,
|
"restrictfilenames": True,
|
||||||
"merge_output_format": "mp4",
|
"merge_output_format": "mp4",
|
||||||
"extractor_args": {"youtube": {"player_client": ["android", "web"]}},
|
"extractor_args": {"youtube": {"player_client": ["ios", "tv_embedded"]}},
|
||||||
}
|
}
|
||||||
|
|
||||||
if mode == "video":
|
if mode == "video":
|
||||||
|
|||||||
Reference in New Issue
Block a user