summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2015-01-23 00:06:02 +0100
committerPhilipp Hagemeister <[email protected]>2015-01-23 00:06:02 +0100
commit3ee2aa7a165670ac6f0a22fe8a3aeda64727aebb (patch)
tree933344f8021cde937cc21c996f410de373e03320
parent083c9df93b08a24e967b68fbdd2f4a71ae74c8c8 (diff)
parentf353cbdb2f91564d4637462875c1a12bfbcd2ada (diff)
downloadyoutube-dl-3ee2aa7a165670ac6f0a22fe8a3aeda64727aebb.tar.gz
youtube-dl-3ee2aa7a165670ac6f0a22fe8a3aeda64727aebb.zip
Merge remote-tracking branch 'origin/master'
-rw-r--r--youtube_dl/extractor/twitch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 6831bb596..340cadcf5 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'],