1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-09 22:57:54 +01:00

[picta] Fix some Picta DASH video vp09.00.[dd].08 for 'vcodec': 'vp9', 'acodec':'none'

This commit is contained in:
Oleksis 2019-04-06 02:31:49 -04:00
parent b5626f1979
commit dd00a331ad

View File

@ -91,6 +91,11 @@ class PictaIE(PictaBaseIE):
# MPD manifest
if info.get('manifest_url'):
formats.extend(self._extract_mpd_formats(info.get('manifest_url'), video_id, formats_dict=self._formats))
# Fix some Picta DASH video vp09.00.[dd].08 for 'vcodec': 'vp9', 'acodec':'none'
for f in formats:
if f.get('acodec') is None and f.get('vcodec') == 'none':
f.update({'vcodec':'vp9'})
f.update({'acodec':'none'})
if not formats:
raise ExtractorError('Cannot find video formats')