mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 08:15:37 +08:00
[abc.net.au:iview] Requested fixes
This commit is contained in:
parent
3ca5c363ff
commit
53c10a77bb
@ -124,10 +124,10 @@ class ABCIViewIE(InfoExtractor):
|
||||
title = video_params.get('title') or video_params['seriesTitle']
|
||||
stream = next(s for s in video_params['playlist'] if s.get('type') == 'program')
|
||||
|
||||
if 'sd' in stream["stream-labels"]:
|
||||
hds = stream['streams']['hds']['sd'].replace('metered', 'um')
|
||||
if 'sd' in stream.get("stream-labels", {}):
|
||||
hds = stream.get('streams', {}).get('hds', {}).get('sd', '').replace('metered', 'um')
|
||||
else:
|
||||
hds = stream['hds-unmetered']
|
||||
hds = stream.get('hds-unmetered')
|
||||
|
||||
formats = self._extract_akamai_formats(hds, video_id)
|
||||
self._sort_formats(formats)
|
||||
|
Loading…
Reference in New Issue
Block a user