aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/drtuber.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-11-06 21:33:51 +0700
committerSergey M․ <dstftw@gmail.com>2016-11-06 21:33:51 +0700
commit37e7a71c6c777635c4ed02339339ff27ccb04f58 (patch)
treec3d81a32023023fd449781c665ce14d5768cf922 /youtube_dl/extractor/drtuber.py
parentf5c4b06f17ad8d2a17a3bdf84d8cb2f18b575b8e (diff)
[extractor/generic] Add support for drtuber embds (closes #11098)
Diffstat (limited to 'youtube_dl/extractor/drtuber.py')
-rw-r--r--youtube_dl/extractor/drtuber.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/drtuber.py b/youtube_dl/extractor/drtuber.py
index 95ecef660..22da8e481 100644
--- a/youtube_dl/extractor/drtuber.py
+++ b/youtube_dl/extractor/drtuber.py
@@ -30,6 +30,12 @@ class DrTuberIE(InfoExtractor):
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+?src=["\'](?P<url>(?:https?:)?//(?:www\.)?drtuber\.com/embed/\d+)',
+ webpage)
+
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')