mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-12 13:28:00 +09:00
[doodstream] prefer single quotes
This commit is contained in:
parent
e77d6ab108
commit
671e6022be
@ -72,7 +72,7 @@ class DoodStreamIE(InfoExtractor):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
title = video_id
|
title = video_id
|
||||||
|
|
||||||
token = self._html_search_regex(r'[?&]token=([a-z0-9]+)[&\']', webpage, 'token')
|
token = self._html_search_regex(r"[?&]token=([a-z0-9]+)[&']", webpage, 'token')
|
||||||
auth_url = self._html_search_regex(r"('/pass_md5.*?')", webpage,
|
auth_url = self._html_search_regex(r"('/pass_md5.*?')", webpage,
|
||||||
'pass_md5')
|
'pass_md5')
|
||||||
auth_url = self._parse_json(auth_url, video_id,
|
auth_url = self._parse_json(auth_url, video_id,
|
||||||
@ -80,7 +80,7 @@ class DoodStreamIE(InfoExtractor):
|
|||||||
auth_url = urljoin(url, auth_url)
|
auth_url = urljoin(url, auth_url)
|
||||||
|
|
||||||
webpage = self._download_webpage(auth_url, video_id, headers=referer)
|
webpage = self._download_webpage(auth_url, video_id, headers=referer)
|
||||||
final_url = webpage + ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(10)) + "?token=" + token + "&expiry=" + str(int(time.time() * 1000))
|
final_url = webpage + ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(10)) + '?token=' + token + '&expiry=' + str(int(time.time() * 1000))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user