aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm4tu4g <71326926+m4tu4g@users.noreply.github.com>2022-10-03 19:42:56 +0530
committerGitHub <noreply@github.com>2022-10-03 19:42:56 +0530
commit7244895bde622c6aa0f2d858af1989c4b4f7b4aa (patch)
tree61b8f56e440ce92c4a7cd505b2bdd0f796ca1469
parent177662e0f24bfd54e57b87698739d7a518321bac (diff)
downloadhypervideo-pre-7244895bde622c6aa0f2d858af1989c4b4f7b4aa.tar.lz
hypervideo-pre-7244895bde622c6aa0f2d858af1989c4b4f7b4aa.tar.xz
hypervideo-pre-7244895bde622c6aa0f2d858af1989c4b4f7b4aa.zip
[extractor/zee5] Fix `_VALID_URL` (#5124)
Closes #4612 Authored by: m4tu4g
-rw-r--r--yt_dlp/extractor/zee5.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp/extractor/zee5.py b/yt_dlp/extractor/zee5.py
index d0229e78b..a030e6f21 100644
--- a/yt_dlp/extractor/zee5.py
+++ b/yt_dlp/extractor/zee5.py
@@ -23,7 +23,7 @@ class Zee5IE(InfoExtractor):
https?://(?:www\.)?zee5\.com/(?:[^#?]+/)?
(?:
(?:tv-shows|kids|web-series|zee5originals)(?:/[^#/?]+){3}
- |movies/[^#/?]+
+ |(?:movies|kids|videos)/(?!kids-shows)[^#/?]+
)/(?P<display_id>[^#/?]+)/
)
(?P<id>[^#/?]+)/?(?:$|[?#])
@@ -84,6 +84,9 @@ class Zee5IE(InfoExtractor):
}, {
'url': 'https://www.zee5.com/web-series/details/mithya/0-6-4z587408/maine-dekhi-hai-uski-mrityu/0-1-6z587412',
'only_matching': True
+ }, {
+ 'url': 'https://www.zee5.com/kids/kids-movies/maya-bommalu/0-0-movie_1040370005',
+ 'only_matching': True
}]
_DETAIL_API_URL = 'https://spapi.zee5.com/singlePlayback/getDetails/secure?content_id={}&device_id={}&platform_name=desktop_web&country=IN&check_parental_control=false'
_DEVICE_ID = ''.join(random.choices(string.ascii_letters + string.digits, k=20)).ljust(32, '0')
@@ -176,7 +179,7 @@ class Zee5SeriesIE(InfoExtractor):
(?:
zee5:series:|
https?://(?:www\.)?zee5\.com/(?:[^#?]+/)?
- (?:tv-shows|web-series|kids|zee5originals)(?:/[^#/?]+){2}/
+ (?:tv-shows|web-series|kids|zee5originals)/(?!kids-movies)(?:[^#/?]+/){2}
)
(?P<id>[^#/?]+)(?:/episodes)?/?(?:$|[?#])
'''