aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/vzaar.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/vzaar.py')
-rw-r--r--hypervideo_dl/extractor/vzaar.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/hypervideo_dl/extractor/vzaar.py b/hypervideo_dl/extractor/vzaar.py
index 54f88bb..6b9817c 100644
--- a/hypervideo_dl/extractor/vzaar.py
+++ b/hypervideo_dl/extractor/vzaar.py
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
@@ -15,6 +10,7 @@ from ..utils import (
class VzaarIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?:www|view)\.)?vzaar\.com/(?:videos/)?(?P<id>\d+)'
+ _EMBED_REGEX = [r'<iframe[^>]+src=["\'](?P<url>(?:https?:)?//(?:view\.vzaar\.com)/[0-9]+)']
_TESTS = [{
# HTTP and HLS
'url': 'https://vzaar.com/videos/1152805',
@@ -50,12 +46,6 @@ class VzaarIE(InfoExtractor):
'only_matching': True,
}]
- @staticmethod
- def _extract_urls(webpage):
- return re.findall(
- r'<iframe[^>]+src=["\']((?:https?:)?//(?:view\.vzaar\.com)/[0-9]+)',
- webpage)
-
def _real_extract(self, url):
video_id = self._match_id(url)
video_data = self._download_json(
@@ -100,8 +90,6 @@ class VzaarIE(InfoExtractor):
f['_decryption_key_url'] = url_templ % ('goose', '') + qs
formats.extend(m3u8_formats)
- self._sort_formats(formats)
-
return {
'id': video_id,
'title': title,