]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[twitch:vod] Fix 'Source' format in m3u8 (closes #6115)
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 28 Jun 2015 05:25:59 +0000 (13:25 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 28 Jun 2015 05:33:09 +0000 (13:33 +0800)
youtube_dl/extractor/twitch.py

index 94bd6345da18815a50b72502a8b91ae4e30ae2b5..3e798e62d0b0bef82d2a2c727d98b15fcfc797bc 100644 (file)
@@ -215,7 +215,7 @@ class TwitchVodIE(TwitchItemBaseIE):
             '%s/api/vods/%s/access_token' % (self._API_BASE, item_id), item_id,
             'Downloading %s access token' % self._ITEM_TYPE)
         formats = self._extract_m3u8_formats(
-            '%s/vod/%s?nauth=%s&nauthsig=%s'
+            '%s/vod/%s?nauth=%s&nauthsig=%s&allow_source=true'
             % (self._USHER_BASE, item_id, access_token['token'], access_token['sig']),
             item_id, 'mp4')
         self._prefer_source(formats)