Merge remote-tracking branch 'origin/master'
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 22 Jan 2015 23:06:02 +0000 (00:06 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 22 Jan 2015 23:06:02 +0000 (00:06 +0100)
1  2 
youtube_dl/extractor/twitch.py

index 6831bb59605e416c2febe760524a5e1cb999eb8b,87e3c453dee21ed84fbf1475cee9446f57fd66a8..340cadcf5f2a00f855d4cbb47c1b46ba09ec502a
@@@ -3,6 -3,7 +3,7 @@@ from __future__ import unicode_literal
  
  import itertools
  import re
+ import random
  
  from .common import InfoExtractor
  from ..compat import (
@@@ -305,7 -306,7 +306,7 @@@ class TwitchStreamIE(TwitchBaseIE)
  
          query = {
              'allow_source': 'true',
-             'p': '9386337',
+             'p': random.randint(1000000, 10000000),
              'player': 'twitchweb',
              'segment_preference': '4',
              'sig': access_token['sig'],
              'view_count': view_count,
              'formats': formats,
              'is_live': True,
 -        }
 +        }