From: Sergey M․ Date: Thu, 22 Jan 2015 17:34:40 +0000 (+0600) Subject: [twitch:stream] Randomize query X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f353cbdb2f91564d4637462875c1a12bfbcd2ada;p=youtube-dl [twitch:stream] Randomize query --- diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index 14314916a..87e3c453d 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import itertools import re +import random from .common import InfoExtractor from ..compat import ( @@ -305,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'],