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/medialaan.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hypervideo_dl/extractor/medialaan.py') diff --git a/hypervideo_dl/extractor/medialaan.py b/hypervideo_dl/extractor/medialaan.py index 788acf7..bce20dc 100644 --- a/hypervideo_dl/extractor/medialaan.py +++ b/hypervideo_dl/extractor/medialaan.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re from .common import InfoExtractor @@ -71,8 +69,8 @@ class MedialaanIE(InfoExtractor): 'only_matching': True, }] - @staticmethod - def _extract_urls(webpage): + @classmethod + def _extract_embed_urls(cls, url, webpage): entries = [] for element in re.findall(r'(]+data-mychannels-type="video"[^>]*>)', webpage): mychannels_id = extract_attributes(element).get('data-mychannels-id') @@ -102,7 +100,6 @@ class MedialaanIE(InfoExtractor): 'ext': ext, 'url': src, }) - self._sort_formats(formats) return { 'id': production_id, -- cgit v1.2.3