]> jfr.im git - yt-dlp.git/commitdiff
[extractor/stripchat] Fix _VALID_URL (#4491)
authorAnant Murmu <redacted>
Sat, 30 Jul 2022 11:35:07 +0000 (17:05 +0530)
committerGitHub <redacted>
Sat, 30 Jul 2022 11:35:07 +0000 (17:05 +0530)
Closes https://github.com/yt-dlp/yt-dlp/issues/4486

Authored by: freezboltz

yt_dlp/extractor/stripchat.py

index a7c7b0649684b8c3f160a767482732aaafdcaa02..7214184bfce34617d6c83b85a8caec894e8e6d86 100644 (file)
@@ -10,7 +10,7 @@
 
 
 class StripchatIE(InfoExtractor):
-    _VALID_URL = r'https?://stripchat\.com/(?P<id>[0-9A-Za-z-_]+)'
+    _VALID_URL = r'https?://stripchat\.com/(?P<id>[^/?#]+)'
     _TESTS = [{
         'url': 'https://stripchat.com/feel_me',
         'info_dict': {
@@ -22,6 +22,9 @@ class StripchatIE(InfoExtractor):
             'age_limit': 18,
         },
         'skip': 'Room is offline',
+    }, {
+        'url': 'https://stripchat.com/Rakhijaan@xh',
+        'only_matching': True
     }]
 
     def _real_extract(self, url):