From ec0fa5509d3079cd081f7f6980c03d55e3a53e3e Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 29 Jan 2019 00:03:22 -0600 Subject: [PATCH] Base on the actual stream name, not the string 'name' --- cogs/picarto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/picarto.py b/cogs/picarto.py index d772c8a..3026f57 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -42,7 +42,7 @@ class Picarto: if channels: for channel in channels: name = channel["name"] - previous = self.channel_info.get("name") + previous = self.channel_info.get(name) # There are three statuses, on, remained, and off # On means they were off previously, but are now online # Remained means they were on previous, and are still on