mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 16:26:40 +00:00
[kaltura] optimize url info extraction
This commit is contained in:
parent
0ec589fac3
commit
e5a2e17a9c
1 changed files with 1 additions and 4 deletions
|
@ -137,10 +137,7 @@ class KalturaIE(InfoExtractor):
|
||||||
params = compat_parse_qs(query)
|
params = compat_parse_qs(query)
|
||||||
if path:
|
if path:
|
||||||
splitted_path = path.split('/')
|
splitted_path = path.split('/')
|
||||||
if not splitted_path[-1]:
|
params.update(dict((zip(splitted_path[::2], [[v] for v in splitted_path[1::2]]))))
|
||||||
splitted_path = splitted_path[:-1]
|
|
||||||
for i in range(0, len(splitted_path), 2):
|
|
||||||
params[splitted_path[i]] = [splitted_path[i + 1]]
|
|
||||||
if 'wid' in params:
|
if 'wid' in params:
|
||||||
partner_id = params['wid'][0][1:]
|
partner_id = params['wid'][0][1:]
|
||||||
elif 'p' in params:
|
elif 'p' in params:
|
||||||
|
|
Loading…
Reference in a new issue