Fix ws add_topics dedupe + remove accepts str

This commit is contained in:
DevilXD committed 2021-12-24 19:08:25 +01:00
1 parent 72b80e18d8
commit 7504a222d1
3 files changed
+33 -27

No files matched your search

+1 -6
View File
@@ -133,12 +133,7 @@ class Twitch:
self.channels[channel.id] = channel
# Sub to these channel updates
topics: List[WebsocketTopic] = [
WebsocketTopic(
"Channel",
"VideoPlayback",
channel_id,
partial(self.process_stream_state, channel_id),
)
WebsocketTopic("Channel", "VideoPlayback", channel_id, self.process_stream_state)
for channel_id in self.channels
]
self.websocket.add_topics(topics)