projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ec589f
)
[kaltura] optimize url info extraction
author
remitamine
<remitamine@gmail.com>
Sat, 12 Mar 2016 17:43:45 +0000
(18:43 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 12 Mar 2016 17:43:45 +0000
(18:43 +0100)
youtube_dl/extractor/kaltura.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/kaltura.py
b/youtube_dl/extractor/kaltura.py
index 78e29f481112d69096b599fa8d860b92c2be59eb..79a72d45f617a8dce9cda937c0ba9ed3dc642f18 100644
(file)
--- 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: