fix: retrieve itag 18 even if it's in https protocol

This commit is contained in:
2025-06-28 20:52:38 +02:00
parent 6cdae051b5
commit 3ea3558990
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ ytdl_opts = {
}, },
"extractor_args": { "extractor_args": {
"youtube": { "youtube": {
"formats": ["dashy"] # "formats": ["dashy"]
} }
}, },
"simulate": True "simulate": True

View File

@@ -235,7 +235,7 @@ def rebuildFormatsFromYtdlpApi(ydata: dict):
for stream in safeTraverse(ydata, ["formats"], default=[]): for stream in safeTraverse(ydata, ["formats"], default=[]):
if safeTraverse(stream, ["protocol"], default="storyboard") not in ("http_dash_segments"): if safeTraverse(stream, ["protocol"], default="storyboard") not in ("http_dash_segments", "https"):
continue continue
newRow = {} newRow = {}