Skip to content

Commit

Permalink
[redtube] Extend _VALID_URL (#26506)
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxo authored and GitHub committed Sep 20, 2020
1 parent defc820 commit 1ca5f82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/redtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


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',
Expand All @@ -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
Expand Down

0 comments on commit 1ca5f82

Please sign in to comment.