From 133430479392f1f427cf95d11dfd5b489299ba15 Mon Sep 17 00:00:00 2001 From: Dev Bali Date: Tue, 22 Jun 2021 19:08:41 -0700 Subject: [PATCH] Added Cookie Functionality to Hotstar --- youtube_dl/extractor/hotstar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/hotstar.py b/youtube_dl/extractor/hotstar.py index 6af049609..b31e1eb03 100644 --- a/youtube_dl/extractor/hotstar.py +++ b/youtube_dl/extractor/hotstar.py @@ -19,7 +19,7 @@ from ..utils import ( int_or_none, str_or_none, try_get, - url_or_none + url_or_none, ) @@ -35,7 +35,8 @@ class HotStarBaseIE(InfoExtractor): h.update(headers) 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'): response = self._call_api_impl(path, video_id, {