fix: retrieve itag 18 even if it's in https protocol
This commit is contained in:
@@ -15,7 +15,7 @@ ytdl_opts = {
|
||||
},
|
||||
"extractor_args": {
|
||||
"youtube": {
|
||||
"formats": ["dashy"]
|
||||
# "formats": ["dashy"]
|
||||
}
|
||||
},
|
||||
"simulate": True
|
||||
|
||||
@@ -235,7 +235,7 @@ def rebuildFormatsFromYtdlpApi(ydata: dict):
|
||||
|
||||
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
|
||||
|
||||
newRow = {}
|
||||
|
||||
Reference in New Issue
Block a user