aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/funimation.py
diff options
context:
space:
mode:
authorAnant Murmu <freezboltz@gmail.com>2022-12-30 08:13:49 +0530
committerGitHub <noreply@github.com>2022-12-30 08:13:49 +0530
commitefa944f4bc892321a0d01dcddb210405761ecada (patch)
tree108064b9f18a7a18d7cc0a75b256225a98edd581 /yt_dlp/extractor/funimation.py
parente107c2b8cf8d6f3506d07bc64fc243682ee49b1e (diff)
downloadhypervideo-pre-efa944f4bc892321a0d01dcddb210405761ecada.tar.lz
hypervideo-pre-efa944f4bc892321a0d01dcddb210405761ecada.tar.xz
hypervideo-pre-efa944f4bc892321a0d01dcddb210405761ecada.zip
[cleanup] Use `random.choices` (#5800)
Authored by: freezboltz
Diffstat (limited to 'yt_dlp/extractor/funimation.py')
-rw-r--r--yt_dlp/extractor/funimation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/funimation.py b/yt_dlp/extractor/funimation.py
index 18363c1b9..47c316664 100644
--- a/yt_dlp/extractor/funimation.py
+++ b/yt_dlp/extractor/funimation.py
@@ -210,7 +210,7 @@ class FunimationIE(FunimationBaseIE):
page = self._download_json(
'https://www.funimation.com/api/showexperience/%s/' % experience_id,
display_id, headers=headers, expected_status=403, query={
- 'pinst_id': ''.join([random.choice(string.digits + string.ascii_letters) for _ in range(8)]),
+ 'pinst_id': ''.join(random.choices(string.digits + string.ascii_letters, k=8)),
}, note=f'Downloading {format_name} JSON')
sources = page.get('items') or []
if not sources: