[utils] Add parse_qs
This commit is contained in:
parent
8fc54b1230
commit
4dfbf8696b
36 changed files with 101 additions and 135 deletions
|
|
@ -4,13 +4,12 @@ from __future__ import unicode_literals
|
|||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import (
|
||||
compat_parse_qs,
|
||||
compat_str,
|
||||
compat_urllib_parse_urlparse,
|
||||
)
|
||||
from ..utils import (
|
||||
determine_ext,
|
||||
int_or_none,
|
||||
parse_qs,
|
||||
try_get,
|
||||
qualities,
|
||||
)
|
||||
|
|
@ -78,7 +77,7 @@ class SixPlayIE(InfoExtractor):
|
|||
continue
|
||||
if container == 'm3u8' or ext == 'm3u8':
|
||||
if protocol == 'usp':
|
||||
if compat_parse_qs(compat_urllib_parse_urlparse(asset_url).query).get('token', [None])[0]:
|
||||
if parse_qs(asset_url).get('token', [None])[0]:
|
||||
urlh = self._request_webpage(
|
||||
asset_url, video_id, fatal=False,
|
||||
headers=self.geo_verification_headers())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue