Skip to content

Commit e017ada

Browse files
committed
Prepare release v0.0.2
1 parent 43f677d commit e017ada

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.0.2 - Bugfix
4+
5+
* Handle json strings better
6+
37
## 0.0.1 - Primary Release
48

59
* First public release

SocketReceiver_StreamlabsSystem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ScriptName = "SocketReceiver"
1919
Website = "https://github.com/nossebro/SocketReceiver"
2020
Creator = "nossebro"
21-
Version = "0.0.1"
21+
Version = "0.0.2"
2222
Description = "Read events from the local SLCB socket"
2323

2424
#---------------------------------------
@@ -253,6 +253,8 @@ def LocalSocketError(ws, data):
253253
def LocalSocketEvent(ws, data):
254254
if data.IsText:
255255
event = json.loads(data.Data)
256+
if "data" in event and isinstance(event["data"], str):
257+
event["data"] = json.loads(event["data"])
256258
if event["event"] == "EVENT_CONNECTED":
257259
global LocalSocketIsConnected
258260
LocalSocketIsConnected = True

0 commit comments

Comments
 (0)