Add proxy handling to get_session

This commit is contained in:
DevilXD committed 2022-12-02 20:39:39 +01:00
1 parent d3ba25ee5d
commit 64a7bdc6fd
1 file changed
+3 -1
+3 -1
View File
@@ -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":