mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-29 16:39:37 +00:00
Add proxy handling to get_session
This commit is contained in:
@@ -553,7 +553,9 @@ class Twitch:
|
||||
# try to obtain the latest Chrome user agent from a Github project
|
||||
try:
|
||||
async with aiohttp.request(
|
||||
"GET", "https://jnrbsn.github.io/user-agents/user-agents.json"
|
||||
"GET",
|
||||
"https://jnrbsn.github.io/user-agents/user-agents.json",
|
||||
proxy=self.settings.proxy or None,
|
||||
) as response:
|
||||
agents = await response.json()
|
||||
if sys.platform == "win32":
|
||||
|
||||
Reference in New Issue
Block a user