Skip to content
Snippets Groups Projects
Commit 099269b8 authored by nao20010128nao's avatar nao20010128nao
Browse files

Merge branch 'master' of https://github.com/yt-dlp/yt-dlp into ytdlp

* 'master' of https://github.com/yt-dlp/yt-dlp:
  [extractor/zee5] Generate device ids (#5062)
parents 56ffa96d a5642f2c
No related branches found
No related tags found
No related merge requests found
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 <mobile_number>" to login using otp or "--username token" and "--password <user_token>" to login using user token.'
_NETRC_MACHINE = 'zee5'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment