Commit 7143a4da authored by liyang's avatar liyang

fix:爬取youtube

parent a916ce36
...@@ -84,7 +84,7 @@ def yt_dlp_download(url, name): ...@@ -84,7 +84,7 @@ def yt_dlp_download(url, name):
geo = "" geo = ""
# --get-url # --get-url
video_selection = f'' video_selection = f''
download_options = "" download_options = f'-f mp4 -vU'
other_options = f'--verbose' other_options = f'--verbose'
# 要执行的 shell 命令 # 要执行的 shell 命令
command = f'yt-dlp {options} {network_options} {geo} {video_selection} {download_options} {other_options} -- {url}' command = f'yt-dlp {options} {network_options} {geo} {video_selection} {download_options} {other_options} -- {url}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment