Quellcode durchsuchen

update youtube 视频下载清晰度改为最大720p

lierqiang vor 2 Jahren
Ursprung
Commit
89196f13ad
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      common/common.py

+ 1 - 1
common/common.py

@@ -189,7 +189,7 @@ class Common:
             # 视频名
             video_name = "video.mp4"
             try:
-                download_cmd = f'yt-dlp -f "bv[height=720][ext=mp4]+ba[ext=m4a]" --merge-output-format mp4 "{video_url}-U" -o {video_path}{video_name}'
+                download_cmd = f'yt-dlp -f "bv[height<=720][ext=mp4]+ba[ext=m4a]" --merge-output-format mp4 "{video_url}-U" -o {video_path}{video_name}'
                 Common.logger(log_type, crawler).info(f"download_cmd:{download_cmd}")
                 os.system(download_cmd)
                 # move_cmd = f"mv {video_name} {video_path}"