Fix ws add_topics dedupe + remove accepts str
This commit is contained in:
1 parent
72b80e18d8
commit
7504a222d1
3 files changed
+33
-27
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user