diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-07-29 10:47:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 15:47:43 +0000 |
commit | 86eeb044c2342d68c6ef177577f87852e6badd85 (patch) | |
tree | 08c1d8f9fe017b90306a86190708e61db224a2b2 | |
parent | 9a04113dfbb69b904e4e2bea736da293505786b8 (diff) | |
download | hypervideo-pre-86eeb044c2342d68c6ef177577f87852e6badd85.tar.lz hypervideo-pre-86eeb044c2342d68c6ef177577f87852e6badd85.tar.xz hypervideo-pre-86eeb044c2342d68c6ef177577f87852e6badd85.zip |
[ie/hotstar] Support `/clips/` URLs (#7710)
Closes #7699
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/hotstar.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py index 324e9f51d..cdd937941 100644 --- a/yt_dlp/extractor/hotstar.py +++ b/yt_dlp/extractor/hotstar.py @@ -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}|[^?#]*) )? [^/?#]+/ @@ -143,6 +143,18 @@ class HotStarIE(HotStarBaseIE): '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, }, { @@ -160,6 +172,7 @@ class HotStarIE(HotStarBaseIE): 'episode': 'episode', 'tv': 'episode', 'shows': 'episode', + 'clips': 'content', None: 'content', } |