projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e449b
)
[twitch:stream] Randomize query
author
Sergey M․
<dstftw@gmail.com>
Thu, 22 Jan 2015 17:34:40 +0000
(23:34 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 22 Jan 2015 17:34:40 +0000
(23:34 +0600)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 14314916a5fbee50d9a6617afa54ecb99fd44ae4..87e3c453dee21ed84fbf1475cee9446f57fd66a8 100644
(file)
--- 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'],