[abc.net.au:iview] Support hq streams when available

This commit is contained in:
d2au 2017-06-25 14:01:43 +09:30
parent a7ce8f16c4
commit 3ca5c363ff

View File

@ -124,7 +124,12 @@ class ABCIViewIE(InfoExtractor):
title = video_params.get('title') or video_params['seriesTitle'] title = video_params.get('title') or video_params['seriesTitle']
stream = next(s for s in video_params['playlist'] if s.get('type') == 'program') stream = next(s for s in video_params['playlist'] if s.get('type') == 'program')
formats = self._extract_akamai_formats(stream['hds-unmetered'], video_id) if 'sd' in stream["stream-labels"]:
hds = stream['streams']['hds']['sd'].replace('metered', 'um')
else:
hds = stream['hds-unmetered']
formats = self._extract_akamai_formats(hds, video_id)
self._sort_formats(formats) self._sort_formats(formats)
subtitles = {} subtitles = {}