stop preferring single file download from ytdlp

This commit is contained in:
Barbara Miller 2024-08-06 16:56:10 -07:00
parent 16921d11be
commit ef59f474bd

View File

@ -249,11 +249,9 @@ def _build_youtube_dl(worker, destdir, site, page):
"postprocessor_hooks": [ydl_postprocess_hook], "postprocessor_hooks": [ydl_postprocess_hook],
# https://github.com/yt-dlp/yt-dlp#format-selection # https://github.com/yt-dlp/yt-dlp#format-selection
# "By default, yt-dlp tries to download the best available quality..." # "By default, yt-dlp tries to download the best available quality..."
# pre-v.2023.07.06: "format_sort": ["ext"],
# v.2023.07.06 https://www.reddit.com/r/youtubedl/wiki/h264/?rdt=63577 # v.2023.07.06 https://www.reddit.com/r/youtubedl/wiki/h264/?rdt=63577
# recommended: convert working cli to api call with # recommended: convert working cli to api call with
# https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/cli_to_api.py # https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/cli_to_api.py
"format": "b/bv+ba",
"format_sort": ["res:720", "vcodec:h264", "acodec:aac"], "format_sort": ["res:720", "vcodec:h264", "acodec:aac"],
# skip live streams # skip live streams
"match_filter": match_filter_func("!is_live"), "match_filter": match_filter_func("!is_live"),