From 74dc1bf1989ee5d1187ba0164bea28e75ce23219 Mon Sep 17 00:00:00 2001 From: HobbyistDev Date: Mon, 5 Feb 2024 13:29:21 +0900 Subject: [PATCH] [ie/viu] Fix `_VALID_URL` in `ViuOTTIE` --- yt_dlp/extractor/viu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.py index 6f9af9f643..279d797210 100644 --- a/yt_dlp/extractor/viu.py +++ b/yt_dlp/extractor/viu.py @@ -151,7 +151,7 @@ def _real_extract(self, url): class ViuOTTIE(InfoExtractor): IE_NAME = 'viu:ott' _NETRC_MACHINE = 'viu' - _VALID_URL = r'https?://(?:www\.)?viu\.com/ott/(?P[a-z]{2})/(?P[a-z]{2}-[a-z]{2})/vod/(?P\d+)' + _VALID_URL = r'https?://(?:www\.)?viu\.com/ott/(?P[a-z]{2})/(?P[a-z]{2}(?:-[a-z]{2})?)/vod/(?P\d+)' _TESTS = [{ 'url': 'http://www.viu.com/ott/sg/en-us/vod/3421/The%20Prime%20Minister%20and%20I', 'info_dict': {