From 671e6022bee5834406776a71ca91bf2ccdb1dba9 Mon Sep 17 00:00:00 2001 From: schnusch Date: Mon, 31 May 2021 18:30:19 +0200 Subject: [PATCH] [doodstream] prefer single quotes --- youtube_dl/extractor/doodstream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/doodstream.py b/youtube_dl/extractor/doodstream.py index 0d5b3260a..c1f94c856 100644 --- a/youtube_dl/extractor/doodstream.py +++ b/youtube_dl/extractor/doodstream.py @@ -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,