mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[twitch:stream] Randomize query
This commit is contained in:
parent
73e449b226
commit
f353cbdb2f
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import itertools
|
||||
import re
|
||||
import random
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import (
|
||||
|
@ -305,7 +306,7 @@ def _real_extract(self, url):
|
|||
|
||||
query = {
|
||||
'allow_source': 'true',
|
||||
'p': '9386337',
|
||||
'p': random.randint(1000000, 10000000),
|
||||
'player': 'twitchweb',
|
||||
'segment_preference': '4',
|
||||
'sig': access_token['sig'],
|
||||
|
|
Loading…
Reference in a new issue