1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 21:52:54 +08:00

[kaltura] optimize url info extraction

This commit is contained in:
remitamine 2016-03-12 18:43:45 +01:00
parent 0ec589fac3
commit e5a2e17a9c

View File

@ -137,10 +137,7 @@ class KalturaIE(InfoExtractor):
params = compat_parse_qs(query)
if path:
splitted_path = path.split('/')
if not splitted_path[-1]:
splitted_path = splitted_path[:-1]
for i in range(0, len(splitted_path), 2):
params[splitted_path[i]] = [splitted_path[i + 1]]
params.update(dict((zip(splitted_path[::2], [[v] for v in splitted_path[1::2]]))))
if 'wid' in params:
partner_id = params['wid'][0][1:]
elif 'p' in params: