summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-22 23:27:05 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-22 23:27:05 +0700
commit7bf5e3a84aca972fe4c34135c98394ca592211ef (patch)
treebe1791c9bb1cc73723abd6c11d4928c1b387e9d0
parent08a17dae5b66b288744d741d84782118880e0335 (diff)
downloadyoutube-dl-7bf5e3a84aca972fe4c34135c98394ca592211ef.tar.gz
youtube-dl-7bf5e3a84aca972fe4c34135c98394ca592211ef.tar.xz
youtube-dl-7bf5e3a84aca972fe4c34135c98394ca592211ef.zip
[mewatch] Relax _VALID_URL (closes #27506)
-rw-r--r--youtube_dl/extractor/toggle.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/toggle.py b/youtube_dl/extractor/toggle.py
index 91b8023b8..3b9b54759 100644
--- a/youtube_dl/extractor/toggle.py
+++ b/youtube_dl/extractor/toggle.py
@@ -200,7 +200,7 @@ class ToggleIE(InfoExtractor):
 
 class MeWatchIE(InfoExtractor):
     IE_NAME = 'mewatch'
-    _VALID_URL = r'https?://(?:www\.)?mewatch\.sg/watch/[0-9a-zA-Z-]+-(?P<id>[0-9]+)'
+    _VALID_URL = r'https?://(?:www\.)?mewatch\.sg/watch/[^/?#&]+-(?P<id>[0-9]+)'
     _TESTS = [{
         'url': 'https://www.mewatch.sg/watch/Recipe-Of-Life-E1-179371',
         'info_dict': {
@@ -214,6 +214,12 @@ class MeWatchIE(InfoExtractor):
         'params': {
             'skip_download': 'm3u8 download',
         },
+    }, {
+        'url': 'https://www.mewatch.sg/watch/Little-Red-Dot-Detectives-S2-搜密。打卡。小红点-S2-E1-176232',
+        'only_matching': True,
+    }, {
+        'url': 'https://www.mewatch.sg/watch/Little-Red-Dot-Detectives-S2-%E6%90%9C%E5%AF%86%E3%80%82%E6%89%93%E5%8D%A1%E3%80%82%E5%B0%8F%E7%BA%A2%E7%82%B9-S2-E1-176232',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):