aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshish Gupta <39122144+Ashish0804@users.noreply.github.com>2021-10-09 23:57:08 +0530
committerGitHub <noreply@github.com>2021-10-09 23:57:08 +0530
commit81bcd43a033e62a2663d91ac1f7f1be6a785c182 (patch)
tree140c0e1650823064bb098d739c1e1bf145bf6ced
parentb5ae35ee6d3f913898770b8c74ee5f5e5cc33560 (diff)
downloadhypervideo-pre-81bcd43a033e62a2663d91ac1f7f1be6a785c182.tar.lz
hypervideo-pre-81bcd43a033e62a2663d91ac1f7f1be6a785c182.tar.xz
hypervideo-pre-81bcd43a033e62a2663d91ac1f7f1be6a785c182.zip
[HotStarSeries] Fix cookies (#1187)
Authored by: Ashish0804
-rw-r--r--yt_dlp/extractor/hotstar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py
index 8f0c67303..f66d3e433 100644
--- a/yt_dlp/extractor/hotstar.py
+++ b/yt_dlp/extractor/hotstar.py
@@ -290,7 +290,7 @@ class HotStarPlaylistIE(HotStarBaseIE):
class HotStarSeriesIE(HotStarBaseIE):
IE_NAME = 'hotstar:series'
- _VALID_URL = r'(?:https?://)(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/(?P<id>\d+)'
+ _VALID_URL = r'(?P<url>(?:https?://)(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/(?P<id>\d+))'
_TESTS = [{
'url': 'https://www.hotstar.com/in/tv/radhakrishn/1260000646',
'info_dict': {
@@ -312,7 +312,7 @@ class HotStarSeriesIE(HotStarBaseIE):
}]
def _real_extract(self, url):
- series_id = self._match_id(url)
+ url, series_id = self._match_valid_url(url).groups()
headers = {
'x-country-code': 'IN',
'x-platform-code': 'PCTV',
@@ -324,7 +324,7 @@ class HotStarSeriesIE(HotStarBaseIE):
video_id=series_id, headers=headers)
entries = [
self.url_result(
- 'hotstar:episode:%d' % video['contentId'],
+ '%s/ignoreme/%d' % (url, video['contentId']),
ie=HotStarIE.ie_key(), video_id=video['contentId'])
for video in item_json['body']['results']['items']
if video.get('contentId')]