diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-01-22 23:34:40 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-01-22 23:34:40 +0600 |
commit | f353cbdb2f91564d4637462875c1a12bfbcd2ada (patch) | |
tree | 38b5d686b9f0ca48b35a57e708735de0e8cb420b | |
parent | 73e449b226ddfe204fb9f9bea5514141624abbf4 (diff) |
[twitch:stream] Randomize query
-rw-r--r-- | youtube_dl/extractor/twitch.py | 3 |
1 files changed, 2 insertions, 1 deletions
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'], |