From b19c5e55e5d926790b4531f4b96e494c093336ff Mon Sep 17 00:00:00 2001 From: Twentysix Date: Thu, 3 Aug 2017 21:13:01 +0200 Subject: [PATCH] [Streams] Specify encoding for Twitch's ID endpoint --- cogs/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/streams.py b/cogs/streams.py index 39f95bc41..b0e64a576 100644 --- a/cogs/streams.py +++ b/cogs/streams.py @@ -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: