aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-10 04:43:00 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-10 04:43:00 +0600
commit89d23f37f26c2a245c76fb6a0842cc945f68de19 (patch)
tree04e5d3f0f2b9ad887e50a3b4f24fbd4b94009aba /youtube_dl/extractor
parentb92071ef00d3a74b3c7145883587f5bf4d14498b (diff)
[hotstar] Relax _VALID_URL (Closes #8487)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/hotstar.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/youtube_dl/extractor/hotstar.py b/youtube_dl/extractor/hotstar.py
index a7c3ce4ab..f05d765d6 100644
--- a/youtube_dl/extractor/hotstar.py
+++ b/youtube_dl/extractor/hotstar.py
@@ -10,8 +10,8 @@ from ..utils import (
class HotStarIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?hotstar\.com/.*?[/-](?P<id>\d{10})'
- _TEST = {
+ _VALID_URL = r'https?://(?:www\.)?hotstar\.com/(?:.+?[/-])?(?P<id>\d{10})'
+ _TESTS = [{
'url': 'http://www.hotstar.com/on-air-with-aib--english-1000076273',
'info_dict': {
'id': '1000076273',
@@ -26,7 +26,13 @@ class HotStarIE(InfoExtractor):
# m3u8 download
'skip_download': True,
}
- }
+ }, {
+ 'url': 'http://www.hotstar.com/sports/cricket/rajitha-sizzles-on-debut-with-329/2001477583',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://www.hotstar.com/1000000515',
+ 'only_matching': True,
+ }]
_GET_CONTENT_TEMPLATE = 'http://account.hotstar.com/AVS/besc?action=GetAggregatedContentDetails&channel=PCTV&contentId=%s'
_GET_CDN_TEMPLATE = 'http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=%s&id=%s&type=%s'