mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[ie/zee5] Update access token endpoint (#7914)
Closes #7911 Authored by: bashonly
This commit is contained in:
parent
876b70c8ed
commit
a0de8bb860
@ -133,8 +133,8 @@ def _perform_login(self, username, password):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id, display_id = self._match_valid_url(url).group('id', 'display_id')
|
video_id, display_id = self._match_valid_url(url).group('id', 'display_id')
|
||||||
access_token_request = self._download_json(
|
access_token_request = self._download_json(
|
||||||
'https://useraction.zee5.com/token/platform_tokens.php?platform_name=web_app',
|
'https://launchapi.zee5.com/launch?platform_name=web_app',
|
||||||
video_id, note='Downloading access token')
|
video_id, note='Downloading access token')['platform_token']
|
||||||
data = {
|
data = {
|
||||||
'x-access-token': access_token_request['token']
|
'x-access-token': access_token_request['token']
|
||||||
}
|
}
|
||||||
@ -240,8 +240,8 @@ class Zee5SeriesIE(InfoExtractor):
|
|||||||
|
|
||||||
def _entries(self, show_id):
|
def _entries(self, show_id):
|
||||||
access_token_request = self._download_json(
|
access_token_request = self._download_json(
|
||||||
'https://useraction.zee5.com/token/platform_tokens.php?platform_name=web_app',
|
'https://launchapi.zee5.com/launch?platform_name=web_app',
|
||||||
show_id, note='Downloading access token')
|
show_id, note='Downloading access token')['platform_token']
|
||||||
headers = {
|
headers = {
|
||||||
'X-Access-Token': access_token_request['token'],
|
'X-Access-Token': access_token_request['token'],
|
||||||
'Referer': 'https://www.zee5.com/',
|
'Referer': 'https://www.zee5.com/',
|
||||||
|
Loading…
Reference in New Issue
Block a user