projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3bdae7
)
[extractor/common] use compat_parse_qs in update_url_params
author
remitamine
<remitamine@gmail.com>
Thu, 3 Mar 2016 09:54:39 +0000
(10:54 +0100)
committer
remitamine
<remitamine@gmail.com>
Thu, 3 Mar 2016 09:54:39 +0000
(10:54 +0100)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 282559597292baca897b8629f45d34da49b21ac0..a95387cee4d2e601a1c42d4c784c5cce96735026 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-20,6
+20,7
@@
from ..compat import (
compat_urllib_error,
compat_urllib_parse,
compat_urlparse,
+ compat_parse_qs,
compat_str,
compat_etree_fromstring,
)
@@
-519,7
+520,7
@@
class InfoExtractor(object):
def update_url_params(self, url, params):
parsed_url = compat_urlparse.urlparse(url)
- qs = compat_
urlparse.
parse_qs(parsed_url.query)
+ qs = compat_parse_qs(parsed_url.query)
qs.update(params)
return compat_urlparse.urlunparse(
parsed_url._replace(query=compat_urllib_parse.urlencode(qs, True)))