diff options
Diffstat (limited to 'hypervideo_dl/extractor/tube8.py')
-rw-r--r-- | hypervideo_dl/extractor/tube8.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/hypervideo_dl/extractor/tube8.py b/hypervideo_dl/extractor/tube8.py index db93b01..77ed05f 100644 --- a/hypervideo_dl/extractor/tube8.py +++ b/hypervideo_dl/extractor/tube8.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re from ..utils import ( @@ -9,8 +7,9 @@ from ..utils import ( from .keezmovies import KeezMoviesIE -class Tube8IE(KeezMoviesIE): +class Tube8IE(KeezMoviesIE): # XXX: Do not subclass from concrete IE _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', @@ -31,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) |