From f353cbdb2f91564d4637462875c1a12bfbcd2ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 22 Jan 2015 23:34:40 +0600 Subject: [PATCH] [twitch:stream] Randomize query --- youtube_dl/extractor/twitch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'],