Skip to content

Commit

Permalink
[mewatch] Relax _VALID_URL (closes #27506)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Dec 22, 2020
1 parent 08a17da commit 7bf5e3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion youtube_dl/extractor/toggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def counter(prefix):

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': {
Expand All @@ -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):
Expand Down

0 comments on commit 7bf5e3a

Please sign in to comment.