aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/tencent.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/tencent.py')
-rw-r--r--yt_dlp/extractor/tencent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/tencent.py b/yt_dlp/extractor/tencent.py
index ff8bf991e..44cae0472 100644
--- a/yt_dlp/extractor/tencent.py
+++ b/yt_dlp/extractor/tencent.py
@@ -32,7 +32,7 @@ class TencentBaseIE(InfoExtractor):
padding_mode='whitespace').hex().upper()
def _get_video_api_response(self, video_url, video_id, series_id, subtitle_format, video_format, video_quality):
- guid = ''.join([random.choice(string.digits + string.ascii_lowercase) for _ in range(16)])
+ guid = ''.join(random.choices(string.digits + string.ascii_lowercase, k=16))
ckey = self._get_ckey(video_id, video_url, guid)
query = {
'vid': video_id,
@@ -55,7 +55,7 @@ class TencentBaseIE(InfoExtractor):
'platform': self._PLATFORM,
# For VQQ
'guid': guid,
- 'flowid': ''.join(random.choice(string.digits + string.ascii_lowercase) for _ in range(32)),
+ 'flowid': ''.join(random.choices(string.digits + string.ascii_lowercase, k=32)),
}
return self._search_json(r'QZOutputJson=', self._download_webpage(