aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/tube8.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/tube8.py')
-rw-r--r--yt_dlp/extractor/tube8.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/yt_dlp/extractor/tube8.py b/yt_dlp/extractor/tube8.py
index 32e80d9d2..b092ecad5 100644
--- a/yt_dlp/extractor/tube8.py
+++ b/yt_dlp/extractor/tube8.py
@@ -9,6 +9,7 @@ from .keezmovies import KeezMoviesIE
class Tube8IE(KeezMoviesIE):
_VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:[^/]+/)+(?P<display_id>[^/]+)/(?P<id>\d+)'
+ _EMBED_REGEX = [r'<iframe[^>]+\bsrc=["\'](?P<url>(?:https?:)?//(?:www\.)?tube8\.com/embed/(?:[^/]+/)+\d+)']
_TESTS = [{
'url': 'http://www.tube8.com/teen/kasia-music-video/229795/',
'md5': '65e20c48e6abff62ed0c3965fff13a39',
@@ -29,12 +30,6 @@ 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)