Fix isEnabled KeyError

This commit is contained in:
DevilXD committed 2022-01-22 19:32:13 +01:00
1 parent 7e5f34748b
commit 75179dc69f
3 files changed
+11 -4

No files matched your search

+3 -1
View File
@@ -200,7 +200,9 @@ class Channel:
)
if response:
stream_data = response["data"]["user"]
self.id = int(stream_data["id"]) # fill channel_id
# fill channel_id and name
self.id = int(stream_data["id"])
self.name = stream_data["displayName"]
if stream_data["stream"]:
self._stream = Stream(self, stream_data)
else: