[doodstream] prefer single quotes

This commit is contained in:
schnusch 2021-05-31 18:30:19 +02:00
parent e77d6ab108
commit 671e6022be

View File

@ -72,7 +72,7 @@ class DoodStreamIE(InfoExtractor):
except KeyError:
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,
'pass_md5')
auth_url = self._parse_json(auth_url, video_id,
@ -80,7 +80,7 @@ class DoodStreamIE(InfoExtractor):
auth_url = urljoin(url, auth_url)
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 {
'id': video_id,