mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2026-11-13 15:56:34 +00:00
Update Chrome major version range in user agent
This commit is contained in:
parent
d9c68cc459
commit
3cb2ec6312
|
|
@ -100,7 +100,7 @@ compiled_regex_type = compat_re_Pattern
|
|||
|
||||
def random_user_agent():
|
||||
USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{} Safari/537.36'
|
||||
CHROME_MAJOR_VERSION_RANGE = (141, 151)
|
||||
CHROME_MAJOR_VERSION_RANGE = (145, 155)
|
||||
return USER_AGENT_TMPL.format('{0}.0.0.0'.format(random.randint(*CHROME_MAJOR_VERSION_RANGE)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue