aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/hotstar.py
diff options
context:
space:
mode:
authorAshish <39122144+Ashish0804@users.noreply.github.com>2021-07-25 22:43:43 +0530
committerGitHub <noreply@github.com>2021-07-25 22:43:43 +0530
commit8242bf220deac405f164675fdff16e8f6fd044fc (patch)
tree648478f95ce8060308d8eaf3e85200cb18938bb2 /yt_dlp/extractor/hotstar.py
parent4bfa401d40ce3419be539388fac59f4c7107ca77 (diff)
downloadhypervideo-pre-8242bf220deac405f164675fdff16e8f6fd044fc.tar.lz
hypervideo-pre-8242bf220deac405f164675fdff16e8f6fd044fc.tar.xz
hypervideo-pre-8242bf220deac405f164675fdff16e8f6fd044fc.zip
[HotStarSeriesIE] Fix regex (#569)
Authored by: Ashish0804
Diffstat (limited to 'yt_dlp/extractor/hotstar.py')
-rw-r--r--yt_dlp/extractor/hotstar.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py
index 35825740d..fc7756d5f 100644
--- a/yt_dlp/extractor/hotstar.py
+++ b/yt_dlp/extractor/hotstar.py
@@ -247,7 +247,7 @@ class HotStarPlaylistIE(HotStarBaseIE):
class HotStarSeriesIE(HotStarBaseIE):
IE_NAME = 'hotstar:series'
- _VALID_URL = r'(?:https?://)(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/(?P<id>\d{10})$'
+ _VALID_URL = r'(?:https?://)(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/(?P<id>\d+)'
_TESTS = [{
'url': 'https://www.hotstar.com/in/tv/radhakrishn/1260000646',
'info_dict': {
@@ -260,6 +260,12 @@ class HotStarSeriesIE(HotStarBaseIE):
'id': '1260050431',
},
'playlist_mincount': 43,
+ }, {
+ 'url': 'https://www.hotstar.com/in/tv/mahabharat/435/',
+ 'info_dict': {
+ 'id': '435',
+ },
+ 'playlist_mincount': 269,
}]
def _real_extract(self, url):