Merge pull request #283 from galgeek/bmiller/WT-2862-yt-dlp-format-update

prioritize video resolution — stop preferring single file download from yt-dlp
This commit is contained in:
Barbara Miller 2024-08-12 12:42:09 -07:00 committed by GitHub
commit fa24ee3685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,11 +249,9 @@ def _build_youtube_dl(worker, destdir, site, page):
"postprocessor_hooks": [ydl_postprocess_hook],
# https://github.com/yt-dlp/yt-dlp#format-selection
# "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
# recommended: convert working cli to api call with
# 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"],
# skip live streams
"match_filter": match_filter_func("!is_live"),