aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-09 15:11:33 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-09 15:17:16 +0530
commit54759df58626913a0ed0c96ee35615921668b8b2 (patch)
treeec4819de0b016f5a327a68a3470e9795ef733725
parent605b684c2dcfd583312717e90fa3e6ec1044b2ed (diff)
downloadhypervideo-pre-54759df58626913a0ed0c96ee35615921668b8b2.tar.lz
hypervideo-pre-54759df58626913a0ed0c96ee35615921668b8b2.tar.xz
hypervideo-pre-54759df58626913a0ed0c96ee35615921668b8b2.zip
[zee5] Improve regex
-rw-r--r--yt_dlp/extractor/zee5.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/zee5.py b/yt_dlp/extractor/zee5.py
index 73a50876b..a558e9d78 100644
--- a/yt_dlp/extractor/zee5.py
+++ b/yt_dlp/extractor/zee5.py
@@ -16,7 +16,7 @@ from ..utils import (
class Zee5IE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?zee5\.com/[^#?]*/(?P<display_id>[-\w]+)/(?P<id>[-\d]+)'
+ _VALID_URL = r'(?:zee5:|https?://(?:www\.)?zee5\.com/[^#?]*/(?P<display_id>[^#?]+)/)(?P<id>[^#?/]+)(?:$|[?#])'
_TESTS = [{
'url': 'https://www.zee5.com/movies/details/krishna-the-birth/0-0-63098',
'info_dict': {
@@ -62,6 +62,9 @@ class Zee5IE(InfoExtractor):
'params': {
'format': 'bv',
},
+ }, {
+ 'url': 'https://www.zee5.com/hi/tvshows/details/kundali-bhagya/0-6-366/kundali-bhagya-march-08-2021/0-1-manual_7g9jv1os7730?country=IN',
+ 'only_matching': True
}]
def _real_extract(self, url):