Fix incorrect stream state subscribtion topic

This commit is contained in:
DevilXD committed 2022-02-14 18:25:12 +01:00
1 parent e8cb7ca099
commit 82b6d59194
2 files changed
+8 -7

No files matched your search

+6 -7
View File
@@ -214,16 +214,15 @@ class WebsocketTopic:
WEBSOCKET_TOPICS: Dict[str, Dict[str, str]] = { WEBSOCKET_TOPICS: Dict[str, Dict[str, str]] = {
"User": { # Using user_id "User": { # Using user_id
"Drops": "user-drop-events", "Drops": "user-drop-events",
"StreamState": "stream-change-v1",
"CommunityPoints": "community-points-user-v1", "CommunityPoints": "community-points-user-v1",
"Presence": "presence", "Presence": "presence", # unused
"Notifications": "onsite-notifications", "Notifications": "onsite-notifications", # unused
}, },
"Channel": { # Using channel_id "Channel": { # Using channel_id
"Drops": "channel-drop-events", "Drops": "channel-drop-events", # unused
"StreamState": "stream-change-by-channel", "CommunityPoints": "community-points-channel-v1", # unused
"CommunityPoints": "community-points-channel-v1", "StreamState": "video-playback-by-id",
"VideoPlayback": "video-playback-by-id", # currently unused, can be used to receive updates regarding stream's title and tag changes
"StreamUpdate": "broadcast-settings-update", "StreamUpdate": "broadcast-settings-update",
}, },
} }
+2
View File
@@ -488,6 +488,8 @@ class Twitch:
channel.viewers = viewers channel.viewers = viewers
channel.display() channel.display()
# logger.debug(f"{channel.name} viewers: {viewers}") # logger.debug(f"{channel.name} viewers: {viewers}")
else:
logger.warning(f"Unknown stream state: {msg_type}")
def on_online(self, channel: Channel): def on_online(self, channel: Channel):
""" """