fix: filter out DRC and VB audio from wdata
This commit is contained in:
@@ -301,8 +301,10 @@ def videos(data):
|
||||
initial_fstreams_w[video_stream["itag"]] = video_stream
|
||||
|
||||
# adaptive streams
|
||||
for video_stream in wdata_streams["adaptiveFormats"]:
|
||||
initial_astreams_w[video_stream["itag"]] = video_stream
|
||||
for audiovideo_stream in wdata_streams["adaptiveFormats"]:
|
||||
if not "isVb" in audiovideo_stream and not "isDrc" in audiovideo_stream:
|
||||
# skip DRC and VB formats
|
||||
initial_astreams_w[audiovideo_stream["itag"]] = video_stream
|
||||
|
||||
for itag in initial_astreams_y:
|
||||
if itag in initial_astreams_w:
|
||||
|
||||
Reference in New Issue
Block a user