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/tvc.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'hypervideo_dl/extractor/tvc.py') diff --git a/hypervideo_dl/extractor/tvc.py b/hypervideo_dl/extractor/tvc.py index 008f64c..caa76ab 100644 --- a/hypervideo_dl/extractor/tvc.py +++ b/hypervideo_dl/extractor/tvc.py @@ -1,8 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - -import re - from .common import InfoExtractor from ..utils import ( clean_html, @@ -12,6 +7,7 @@ from ..utils import ( class TVCIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?tvc\.ru/video/iframe/id/(?P\d+)' + _EMBED_REGEX = [r']+?src=(["\'])(?P(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1'] _TEST = { 'url': 'http://www.tvc.ru/video/iframe/id/74622/isPlay/false/id_stat/channel/?acc_video_id=/channel/brand/id/17/show/episodes/episode_id/39702', 'md5': 'bbc5ff531d1e90e856f60fc4b3afd708', @@ -24,13 +20,6 @@ class TVCIE(InfoExtractor): }, } - @classmethod - def _extract_url(cls, webpage): - mobj = re.search( - r']+?src=(["\'])(?P(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1', webpage) - if mobj: - return mobj.group('url') - def _real_extract(self, url): video_id = self._match_id(url) @@ -52,7 +41,6 @@ class TVCIE(InfoExtractor): 'height': int_or_none(info.get('height')), 'tbr': int_or_none(info.get('bitrate')), }) - self._sort_formats(formats) return { 'id': video_id, -- cgit v1.2.3