mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[Streams] Specify encoding for Twitch's ID endpoint
This commit is contained in:
parent
23db0208d0
commit
b19c5e55e5
@ -422,7 +422,7 @@ class Streams:
|
|||||||
session = aiohttp.ClientSession()
|
session = aiohttp.ClientSession()
|
||||||
url = base_url + ",".join(streams_list)
|
url = base_url + ",".join(streams_list)
|
||||||
async with session.get(url, headers=header) as r:
|
async with session.get(url, headers=header) as r:
|
||||||
data = await r.json()
|
data = await r.json(encoding='utf-8')
|
||||||
if r.status == 200:
|
if r.status == 200:
|
||||||
results.extend(data["users"])
|
results.extend(data["users"])
|
||||||
elif r.status == 400:
|
elif r.status == 400:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user