mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -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()
|
||||
url = base_url + ",".join(streams_list)
|
||||
async with session.get(url, headers=header) as r:
|
||||
data = await r.json()
|
||||
data = await r.json(encoding='utf-8')
|
||||
if r.status == 200:
|
||||
results.extend(data["users"])
|
||||
elif r.status == 400:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user