[utils] Add parse_qs
This commit is contained in:
parent
8fc54b1230
commit
4dfbf8696b
36 changed files with 101 additions and 135 deletions
|
|
@ -2,11 +2,11 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import compat_urlparse
|
||||
from ..utils import (
|
||||
int_or_none,
|
||||
orderedSet,
|
||||
parse_duration,
|
||||
parse_qs,
|
||||
qualities,
|
||||
unified_strdate,
|
||||
xpath_text
|
||||
|
|
@ -53,7 +53,7 @@ class EuropaIE(InfoExtractor):
|
|||
if items.get(p):
|
||||
return items[p]
|
||||
|
||||
query = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
|
||||
query = parse_qs(url)
|
||||
preferred_lang = query.get('sitelang', ('en', ))[0]
|
||||
|
||||
preferred_langs = orderedSet((preferred_lang, 'en', 'int'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue