File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ def _get_streams(self):
78
78
self .token_errors .get (tokens ["code" ], "unknown error" )))
79
79
return
80
80
81
+ list_urls = []
81
82
for stream in pdata ["dls" ]:
82
83
if stream ["drm" ]:
83
84
log .warning ("Stream may be protected by DRM" )
@@ -87,7 +88,13 @@ def _get_streams(self):
87
88
cdn_token = tokens .get (stream ["lid" ], {}).get ("cdn" , "" )
88
89
qsd = parse_qsd (cdn_token )
89
90
if sformat == "hls" :
90
- yield from HLSStream .parse_variant_playlist (self .session , update_qsd (stream ["stream" ], qsd )).items ()
91
+ list_urls .append (update_qsd (stream ["stream" ], qsd ))
92
+
93
+ if not list_urls :
94
+ return
95
+
96
+ for url in list (set (list_urls )):
97
+ yield from HLSStream .parse_variant_playlist (self .session , url , name_fmt = "{pixels}_{bitrate}" ).items ()
91
98
92
99
93
100
__plugin__ = Mitele
You can’t perform that action at this time.
0 commit comments