diff options
author | remitamine <remitamine@gmail.com> | 2016-03-03 10:54:39 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-03-03 10:54:39 +0100 |
commit | fa9e259fd91ce1bf31310330adc20ddef2b1d948 (patch) | |
tree | 6050be1d43d3283903333c886c92561c89e42ab1 /youtube_dl/extractor/common.py | |
parent | f3bdae76de7265475277c265f9fff12cdc59825b (diff) |
[extractor/common] use compat_parse_qs in update_url_params
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 282559597..a95387cee 100644 --- 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))) |