From a5642f2c4a212488ef4d103ae54ed01f6040adf2 Mon Sep 17 00:00:00 2001 From: Anant Murmu Date: Thu, 29 Sep 2022 08:31:43 +0530 Subject: [PATCH] [extractor/zee5] Generate device ids (#5062) Closes #4937 Authored by: freezboltz --- yt_dlp/extractor/zee5.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/zee5.py b/yt_dlp/extractor/zee5.py index 29c6d04e69..d0229e78b5 100644 --- a/yt_dlp/extractor/zee5.py +++ b/yt_dlp/extractor/zee5.py @@ -1,4 +1,6 @@ import json +import random +import string from .common import InfoExtractor from ..compat import compat_str @@ -84,7 +86,7 @@ class Zee5IE(InfoExtractor): 'only_matching': True }] _DETAIL_API_URL = 'https://spapi.zee5.com/singlePlayback/getDetails/secure?content_id={}&device_id={}&platform_name=desktop_web&country=IN&check_parental_control=false' - _DEVICE_ID = '1q70TH8Wz0wTyw4buVgg000000000000' + _DEVICE_ID = ''.join(random.choices(string.ascii_letters + string.digits, k=20)).ljust(32, '0') _USER_TOKEN = None _LOGIN_HINT = 'Use "--username " to login using otp or "--username token" and "--password " to login using user token.' _NETRC_MACHINE = 'zee5'