aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/vbox7.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/vbox7.py')
-rw-r--r--hypervideo_dl/extractor/vbox7.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/hypervideo_dl/extractor/vbox7.py b/hypervideo_dl/extractor/vbox7.py
index 8152ace..be35dad 100644
--- a/hypervideo_dl/extractor/vbox7.py
+++ b/hypervideo_dl/extractor/vbox7.py
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
from .common import InfoExtractor
from ..utils import ExtractorError
@@ -20,6 +15,7 @@ class Vbox7IE(InfoExtractor):
)
(?P<id>[\da-fA-F]+)
'''
+ _EMBED_REGEX = [r'<iframe[^>]+src=(?P<q>["\'])(?P<url>(?:https?:)?//vbox7\.com/emb/external\.php.+?)(?P=q)']
_GEO_COUNTRIES = ['BG']
_TESTS = [{
'url': 'http://vbox7.com/play:0946fff23c',
@@ -54,14 +50,6 @@ class Vbox7IE(InfoExtractor):
'only_matching': True,
}]
- @staticmethod
- def _extract_url(webpage):
- mobj = re.search(
- r'<iframe[^>]+src=(?P<q>["\'])(?P<url>(?:https?:)?//vbox7\.com/emb/external\.php.+?)(?P=q)',
- webpage)
- if mobj:
- return mobj.group('url')
-
def _real_extract(self, url):
video_id = self._match_id(url)