1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[twitch:stream] Randomize query

This commit is contained in:
Sergey M․ 2015-01-22 23:34:40 +06:00
parent 73e449b226
commit f353cbdb2f

View file

@ -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'],