Add proxy handling to get_session

This commit is contained in:
DevilXD
2022-12-02 20:39:39 +01:00
parent d3ba25ee5d
commit 64a7bdc6fd

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":