Add proxy handling to get_session
This commit is contained in:
1 parent
d3ba25ee5d
commit
64a7bdc6fd
1 file changed
+3
-1
@@ -553,7 +553,9 @@ class Twitch:
|
|||||||
# try to obtain the latest Chrome user agent from a Github project
|
# try to obtain the latest Chrome user agent from a Github project
|
||||||
try:
|
try:
|
||||||
async with aiohttp.request(
|
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:
|
) as response:
|
||||||
agents = await response.json()
|
agents = await response.json()
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
|||||||
Reference in new issue
Block a user