aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornixxo <[email protected]>2020-09-20 06:39:42 +0200
committerGitHub <[email protected]>2020-09-20 11:39:42 +0700
commit1ca5f821c8708720d5897b48a8c8d9e3d8822f93 (patch)
tree6ec3f494ca778e073dfd55d7077e1da6c1be5297
parentdefc820b70e3f0131fad450fc1e673e18b00a625 (diff)
downloadyoutube-dl-1ca5f821c8708720d5897b48a8c8d9e3d8822f93.tar.gz
youtube-dl-1ca5f821c8708720d5897b48a8c8d9e3d8822f93.zip
[redtube] Extend _VALID_URL (#26506)
-rw-r--r--youtube_dl/extractor/redtube.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py
index 2d2f6a98c..a1ca791ca 100644
--- a/youtube_dl/extractor/redtube.py
+++ b/youtube_dl/extractor/redtube.py
@@ -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