diff options
author | catboy <[email protected]> | 2021-05-04 20:44:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-05 03:44:07 +0700 |
commit | 03afef753878c2528260dc8084092556428f4343 (patch) | |
tree | cf70e6c7edbecb63d5b74bf906faad476e6dbff0 | |
parent | b797c1cc750b1f617678281731303611e21c70d0 (diff) | |
download | youtube-dl-03afef753878c2528260dc8084092556428f4343.tar.gz youtube-dl-03afef753878c2528260dc8084092556428f4343.zip |
[medaltv] Relax _VALID_URL (#28884)
Co-authored-by: Sergey M. <[email protected]>
-rw-r--r-- | youtube_dl/extractor/medaltv.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/medaltv.py b/youtube_dl/extractor/medaltv.py index ef2283dea..67bb4debb 100644 --- a/youtube_dl/extractor/medaltv.py +++ b/youtube_dl/extractor/medaltv.py @@ -15,7 +15,7 @@ from ..utils import ( class MedalTVIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?medal\.tv/clips/(?P<id>[a-zA-Z0-9]+)' + _VALID_URL = r'https?://(?:www\.)?medal\.tv/clips/(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://medal.tv/clips/2mA60jWAGQCBH', 'md5': '7b07b064331b1cf9e8e5c52a06ae68fa', @@ -42,6 +42,12 @@ class MedalTVIE(InfoExtractor): 'upload_date': '20201117', 'uploader_id': '5156321', } + }, { + 'url': 'https://medal.tv/clips/37rMeFpryCC-9', + 'only_matching': True, + }, { + 'url': 'https://medal.tv/clips/2WRj40tpY_EU9', + 'only_matching': True, }] def _real_extract(self, url): |