projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[generic] Add support for tube8 embeds
[youtube-dl]
/
youtube_dl
/
extractor
/
tube8.py
diff --git
a/youtube_dl/extractor/tube8.py
b/youtube_dl/extractor/tube8.py
index 1853a1104c2b8957793ede25c6296598eb0babc9..368c45729af533eca244f4d0e8a29bfe5f4f7a8a 100644
(file)
--- a/
youtube_dl/extractor/tube8.py
+++ b/
youtube_dl/extractor/tube8.py
@@
-31,6
+31,12
@@
class Tube8IE(KeezMoviesIE):
'only_matching': True,
}]
'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)
def _real_extract(self, url):
webpage, info = self._extract_info(url)