[medaltv] Relax _VALID_URL (#28884)
authorcatboy <79282513+catboy-oss@users.noreply.github.com>
Tue, 4 May 2021 20:44:07 +0000 (20:44 +0000)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 20:44:07 +0000 (03:44 +0700)
Co-authored-by: Sergey M. <dstftw@gmail.com>
youtube_dl/extractor/medaltv.py

index ef2283dea833a1c80c2702a1d2b88d7ae76354a7..67bb4debb6440e490d1e2b9e7ee5b72fc3a9f0fa 100644 (file)
@@ -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):