mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-20 23:18:57 +00:00
patch jsdom for iq
This commit is contained in:
@@ -81,6 +81,16 @@ def override_navigator_js(user_agent: str) -> str:
|
||||
'language': 'en-US',
|
||||
'languages': ['en-US'],
|
||||
'webdriver': False,
|
||||
'cookieEnabled': True,
|
||||
'appCodeName': user_agent.split('/', maxsplit=1)[0],
|
||||
'appName': 'Netscape',
|
||||
'appVersion': user_agent.split('/', maxsplit=1)[-1],
|
||||
'platform': 'Win32',
|
||||
'product': 'Gecko',
|
||||
'productSub': '20030107',
|
||||
'vendor': 'Google Inc.',
|
||||
'vendorSub': '',
|
||||
'onLine': True,
|
||||
}.items()
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user