diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-26 17:28:50 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-26 17:30:01 +0530 |
commit | 1685d46007e01c5437a89e979a39b799373a782d (patch) | |
tree | eb6d5e397d8404b982effb54e1d54cdde34d389b /yt_dlp/extractor/ertgr.py | |
parent | 8d214c484c57ac3eb19043c7dc72e4f24e3018e2 (diff) | |
download | hypervideo-pre-1685d46007e01c5437a89e979a39b799373a782d.tar.lz hypervideo-pre-1685d46007e01c5437a89e979a39b799373a782d.tar.xz hypervideo-pre-1685d46007e01c5437a89e979a39b799373a782d.zip |
[extractor/ertflix] Improve `_VALID_URL`
Closes #4180
Diffstat (limited to 'yt_dlp/extractor/ertgr.py')
-rw-r--r-- | yt_dlp/extractor/ertgr.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/ertgr.py b/yt_dlp/extractor/ertgr.py index 507f0a5c1..276543653 100644 --- a/yt_dlp/extractor/ertgr.py +++ b/yt_dlp/extractor/ertgr.py @@ -119,7 +119,7 @@ class ERTFlixCodenameIE(ERTFlixBaseIE): class ERTFlixIE(ERTFlixBaseIE): IE_NAME = 'ertflix' IE_DESC = 'ERTFLIX videos' - _VALID_URL = r'https?://www\.ertflix\.gr/(?:series|vod)/(?P<id>[a-z]{3}\.\d+)' + _VALID_URL = r'https?://www\.ertflix\.gr/(?:[^/]+/)?(?:series|vod)/(?P<id>[a-z]{3}\.\d+)' _TESTS = [{ 'url': 'https://www.ertflix.gr/vod/vod.173258-aoratoi-ergates', 'md5': '6479d5e60fd7e520b07ba5411dcdd6e7', @@ -171,6 +171,9 @@ class ERTFlixIE(ERTFlixBaseIE): 'title': 'Το δίκτυο', }, 'playlist_mincount': 9, + }, { + 'url': 'https://www.ertflix.gr/en/vod/vod.127652-ta-kalytera-mas-chronia-ep1-mia-volta-sto-feggari', + 'only_matching': True, }] def _extract_episode(self, episode): |