aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/redtube.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/redtube.py')
-rw-r--r--youtube_dl/extractor/redtube.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py
index 7d9285ffb..c367a6ae7 100644
--- a/youtube_dl/extractor/redtube.py
+++ b/youtube_dl/extractor/redtube.py
@@ -1,5 +1,7 @@
from __future__ import unicode_literals
+import re
+
from .common import InfoExtractor
from ..utils import (
ExtractorError,
@@ -28,6 +30,12 @@ class RedTubeIE(InfoExtractor):
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+?src=["\'](?P<url>(?:https?:)?//embed\.redtube\.com/\?.*?\bid=\d+)',
+ webpage)
+
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(