]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[redtube] Extend _VALID_URL (#26506)
authornixxo <c.nixxo@gmail.com>
Sun, 20 Sep 2020 04:39:42 +0000 (06:39 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Sep 2020 04:39:42 +0000 (11:39 +0700)
youtube_dl/extractor/redtube.py

index 2d2f6a98c97dba8605cb9f640c7c73d860caa1d0..a1ca791caaa165b520f121c5969b7f0ab6173acc 100644 (file)
@@ -15,7 +15,7 @@ from ..utils import (
 
 
 class RedTubeIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:(?:www\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
+    _VALID_URL = r'https?://(?:(?:\w+\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
     _TESTS = [{
         'url': 'http://www.redtube.com/66418',
         'md5': 'fc08071233725f26b8f014dba9590005',
@@ -31,6 +31,9 @@ class RedTubeIE(InfoExtractor):
     }, {
         'url': 'http://embed.redtube.com/?bgcolor=000000&id=1443286',
         'only_matching': True,
+    }, {
+        'url': 'http://it.redtube.com/66418',
+        'only_matching': True,
     }]
 
     @staticmethod