[HotStarSeriesIE] Fix regex (#569)

Authored by: Ashish0804
This commit is contained in:
Ashish 2021-07-25 22:43:43 +05:30 committed by GitHub
parent 4bfa401d40
commit 8242bf220d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ def _real_extract(self, url):
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):