aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tube8.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-04-09 00:37:15 +0700
committerSergey M․ <dstftw@gmail.com>2018-04-09 00:37:15 +0700
commit069937151e429a2127569910d204c03eec167f0d (patch)
tree8b7fe37f90c423b1ce4fa999105c3b04005c1791 /youtube_dl/extractor/tube8.py
parentd3431dcb90ea72fed502ecfd8f34e7499009a53a (diff)
[generic] Add support for tube8 embeds
Diffstat (limited to 'youtube_dl/extractor/tube8.py')
-rw-r--r--youtube_dl/extractor/tube8.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/tube8.py b/youtube_dl/extractor/tube8.py
index 1853a1104..368c45729 100644
--- a/youtube_dl/extractor/tube8.py
+++ b/youtube_dl/extractor/tube8.py
@@ -31,6 +31,12 @@ class Tube8IE(KeezMoviesIE):
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+\bsrc=["\']((?:https?:)?//(?:www\.)?tube8\.com/embed/(?:[^/]+/)+\d+)',
+ webpage)
+
def _real_extract(self, url):
webpage, info = self._extract_info(url)