]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[svt] Fix DASH formats extraction
authorSergey M․ <dstftw@gmail.com>
Sat, 17 Sep 2016 12:25:31 +0000 (19:25 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 17 Sep 2016 12:25:31 +0000 (19:25 +0700)
youtube_dl/extractor/svt.py

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