Fix an issue where channel's display name was treated like it's username/login

This commit is contained in:
DevilXD committed 2022-01-24 22:57:37 +01:00
1 parent 9ef0007604
commit 29d4fb6cb0
2 files changed
+26 -19

No files matched your search

+2 -2
View File
@@ -190,8 +190,8 @@ class DropsCampaign:
allowed = data["allow"]
self.allowed_channels: List[Channel] = (
[
Channel(twitch, ch["id"], ch.get("displayName", ch["name"]), priority=True)
for ch in allowed["channels"]
Channel(twitch, channel_data, priority=True)
for channel_data in allowed["channels"]
]
if allowed["channels"] and allowed.get("isEnabled", True) else []
)