mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-27 06:10:38 +01:00
Added Cookie Functionality to Hotstar
This commit is contained in:
parent
ab174d33b8
commit
1334304793
|
@ -19,7 +19,7 @@ from ..utils import (
|
||||||
int_or_none,
|
int_or_none,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
try_get,
|
try_get,
|
||||||
url_or_none
|
url_or_none,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ class HotStarBaseIE(InfoExtractor):
|
||||||
h.update(headers)
|
h.update(headers)
|
||||||
|
|
||||||
return self._download_json(
|
return self._download_json(
|
||||||
'https://api.hotstar.com/' + path,video_id, headers=h, query=query, data=data)
|
'https://api.hotstar.com/' + path,
|
||||||
|
video_id, headers=h, query=query, data=data)
|
||||||
|
|
||||||
def _call_api(self, path, video_id, query_name='contentId'):
|
def _call_api(self, path, video_id, query_name='contentId'):
|
||||||
response = self._call_api_impl(path, video_id, {
|
response = self._call_api_impl(path, video_id, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user