Skip to content

Commit

Permalink
[ie/hotstar] Support /clips/ URLs (#7710)
Browse files Browse the repository at this point in the history
Closes #7699
Authored by: bashonly
  • Loading branch information
bashonly committed Jul 29, 2023
1 parent 9a04113 commit 86eeb04
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion yt_dlp/extractor/hotstar.py
Expand Up @@ -84,7 +84,7 @@ class HotStarIE(HotStarBaseIE):
_VALID_URL = r'''(?x)
https?://(?:www\.)?hotstar\.com(?:/in)?/(?!in/)
(?:
(?P<type>movies|sports|episode|(?P<tv>tv|shows))/
(?P<type>movies|sports|clips|episode|(?P<tv>tv|shows))/
(?(tv)(?:[^/?#]+/){2}|[^?#]*)
)?
[^/?#]+/
Expand Down Expand Up @@ -142,6 +142,18 @@ class HotStarIE(HotStarBaseIE):
'duration': 1272,
'channel_id': 3,
},
}, {
'url': 'https://www.hotstar.com/in/clips/e3-sairat-kahani-pyaar-ki/1000262286',
'info_dict': {
'id': '1000262286',
'ext': 'mp4',
'title': 'E3 - SaiRat, Kahani Pyaar Ki',
'description': 'md5:e3b4b3203bc0c5396fe7d0e4948a6385',
'episode': 'E3 - SaiRat, Kahani Pyaar Ki',
'upload_date': '20210606',
'timestamp': 1622943900,
'duration': 5395,
},
}, {
'url': 'https://www.hotstar.com/movies/radha-gopalam/1000057157',
'only_matching': True,
Expand All @@ -160,6 +172,7 @@ class HotStarIE(HotStarBaseIE):
'episode': 'episode',
'tv': 'episode',
'shows': 'episode',
'clips': 'content',
None: 'content',
}

Expand Down

0 comments on commit 86eeb04

Please sign in to comment.