From f00b3887e3707e910ace7493b6ed81c7712f1f61 Mon Sep 17 00:00:00 2001 From: nixxo Date: Wed, 2 Sep 2020 11:15:05 +0200 Subject: [PATCH 1/2] [Redtube] Add support for international videos improve the valid_url regex to support international pages in the format: https://it.redtube.com/.... --- youtube_dl/extractor/redtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index 2d2f6a98c..a3f35106f 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[0-9]+)' + _VALID_URL = r'https?://(?:(?:\w+\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P[0-9]+)' _TESTS = [{ 'url': 'http://www.redtube.com/66418', 'md5': 'fc08071233725f26b8f014dba9590005', From 60884ac5412ec393179734ee54f1ab6325129f8a Mon Sep 17 00:00:00 2001 From: Sergey M Date: Sun, 20 Sep 2020 11:38:35 +0700 Subject: [PATCH 2/2] Update redtube.py --- youtube_dl/extractor/redtube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index a3f35106f..a1ca791ca 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -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