aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjazz1611 <jazz1611@users.noreply.github.com>2024-02-01 00:56:29 +0700
committerGitHub <noreply@github.com>2024-01-31 17:56:29 +0000
commit4a6ff0b47a700dee3ee5c54804c31965308479ae (patch)
tree3847f99cb2dd78112b9b9273e599a5497d4b24c3
parent62c65bfaf81e04e6746f6fdbafe384eb3edddfbc (diff)
[ie/redtube] Support redtube.com.br URLs (#9103)
Authored by: jazz1611
-rw-r--r--yt_dlp/extractor/redtube.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/redtube.py b/yt_dlp/extractor/redtube.py
index 36d530daf..965abbee8 100644
--- a/yt_dlp/extractor/redtube.py
+++ b/yt_dlp/extractor/redtube.py
@@ -12,7 +12,7 @@ from ..utils import (
class RedTubeIE(InfoExtractor):
- _VALID_URL = r'https?://(?:(?:\w+\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
+ _VALID_URL = r'https?://(?:(?:\w+\.)?redtube\.com(?:\.br)?/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
_EMBED_REGEX = [r'<iframe[^>]+?src=["\'](?P<url>(?:https?:)?//embed\.redtube\.com/\?.*?\bid=\d+)']
_TESTS = [{
'url': 'https://www.redtube.com/38864951',
@@ -35,6 +35,9 @@ class RedTubeIE(InfoExtractor):
}, {
'url': 'http://it.redtube.com/66418',
'only_matching': True,
+ }, {
+ 'url': 'https://www.redtube.com.br/103224331',
+ 'only_matching': True,
}]
def _real_extract(self, url):