0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[svt] Fix DASH formats extraction

This commit is contained in:
Sergey M․ 2016-09-17 19:25:31 +07:00
parent b4c1d6e800
commit 21d21b0c72
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -16,7 +16,7 @@ class SVTBaseIE(InfoExtractor):
def _extract_video(self, video_info, video_id): def _extract_video(self, video_info, video_id):
formats = [] formats = []
for vr in video_info['videoReferences']: for vr in video_info['videoReferences']:
player_type = vr.get('playerType') player_type = vr.get('playerType') or vr.get('format')
vurl = vr['url'] vurl = vr['url']
ext = determine_ext(vurl) ext = determine_ext(vurl)
if ext == 'm3u8': if ext == 'm3u8':