From 64a7bdc6fd5d8bdc429e095ba9a6732e69f2aa74 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Fri, 2 Dec 2022 20:39:39 +0100 Subject: [PATCH] Add proxy handling to get_session --- twitch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 8a489ab..5d2b27e 100644 --- a/twitch.py +++ b/twitch.py @@ -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":