From 5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 18 Oct 2021 15:24:21 -0500 Subject: update from upstream --- hypervideo_dl/extractor/arcpublishing.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'hypervideo_dl/extractor/arcpublishing.py') diff --git a/hypervideo_dl/extractor/arcpublishing.py b/hypervideo_dl/extractor/arcpublishing.py index ca6a6c4..5a9b818 100644 --- a/hypervideo_dl/extractor/arcpublishing.py +++ b/hypervideo_dl/extractor/arcpublishing.py @@ -86,7 +86,7 @@ class ArcPublishingIE(InfoExtractor): return entries def _real_extract(self, url): - org, uuid = re.match(self._VALID_URL, url).groups() + org, uuid = self._match_valid_url(url).groups() for orgs, tmpl in self._POWA_DEFAULTS: if org in orgs: base_api_tmpl = tmpl @@ -129,10 +129,6 @@ class ArcPublishingIE(InfoExtractor): if all([f.get('acodec') == 'none' for f in m3u8_formats]): continue for f in m3u8_formats: - if f.get('acodec') == 'none': - f['preference'] = -40 - elif f.get('vcodec') == 'none': - f['preference'] = -50 height = f.get('height') if not height: continue @@ -150,10 +146,9 @@ class ArcPublishingIE(InfoExtractor): 'height': int_or_none(s.get('height')), 'filesize': int_or_none(s.get('filesize')), 'url': s_url, - 'preference': -1, + 'quality': -10, }) - self._sort_formats( - formats, ('preference', 'width', 'height', 'vbr', 'filesize', 'tbr', 'ext', 'format_id')) + self._sort_formats(formats) subtitles = {} for subtitle in (try_get(video, lambda x: x['subtitles']['urls'], list) or []): -- cgit v1.2.3