From 2203c7b2619ee8625eade330d2cc0fcf9f7ab2a8 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Thu, 15 Sep 2016 03:40:14 +0200 Subject: [PATCH] [Streams] Fixed streamalert not using Client-ID --- cogs/streams.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/streams.py b/cogs/streams.py index 237c8d7f4..b3a080b5c 100644 --- a/cogs/streams.py +++ b/cogs/streams.py @@ -317,8 +317,9 @@ class Streams: async def twitch_exists(self, stream): url = "https://api.twitch.tv/channels/" + stream + header = {'Client-ID': self.settings.get("TWITCH_TOKEN", "")} try: - async with aiohttp.get(url) as r: + async with aiohttp.get(url, headers=header) as r: data = await r.json() if "error" in data: return False