diff options
author | remitamine <remitamine@gmail.com> | 2016-03-12 18:43:45 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-03-12 18:43:45 +0100 |
commit | e5a2e17a9c65dd481cfbda55a778d6536a832a15 (patch) | |
tree | 7bde6004bcb3f18922f8bef07f9903f4a3258433 /youtube_dl/extractor | |
parent | 0ec589fac376539edafe48b9d712a5a920ba5f34 (diff) |
[kaltura] optimize url info extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/kaltura.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py index 78e29f481..79a72d45f 100644 --- a/youtube_dl/extractor/kaltura.py +++ b/youtube_dl/extractor/kaltura.py @@ -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: |