aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/vbox7.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/vbox7.py')
-rw-r--r--yt_dlp/extractor/vbox7.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/yt_dlp/extractor/vbox7.py b/yt_dlp/extractor/vbox7.py
index 76c844cb8..be35dad1c 100644
--- a/yt_dlp/extractor/vbox7.py
+++ b/yt_dlp/extractor/vbox7.py
@@ -1,5 +1,3 @@
-import re
-
from .common import InfoExtractor
from ..utils import ExtractorError
@@ -17,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',
@@ -51,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)