aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/arcpublishing.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/arcpublishing.py')
-rw-r--r--hypervideo_dl/extractor/arcpublishing.py11
1 files changed, 3 insertions, 8 deletions
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 []):