From eaeeef9c1d1bedb76fea953c332ef84d53bffe2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 2 Dec 2022 05:21:10 +0800 Subject: update from upstream --- hypervideo_dl/extractor/vzaar.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'hypervideo_dl/extractor/vzaar.py') 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\d+)' + _EMBED_REGEX = [r']+src=["\'](?P(?: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']+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, -- cgit v1.2.3