diff options
Diffstat (limited to 'app/api')
-rw-r--r-- | app/api/MediaScanner.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/api/MediaScanner.qml b/app/api/MediaScanner.qml index add261b..8842a18 100644 --- a/app/api/MediaScanner.qml +++ b/app/api/MediaScanner.qml @@ -83,10 +83,10 @@ WebSocket { case msgid.event: var payload = JSON.parse(JSON.stringify(json[2])) var event = payload.event - if (event == "mediascanner/media_added") { + if (event === "mediascanner/media_added") { console.debug("Media playlist is updated") root.add(json[2].data.Media) - } else if (event == "mediascanner/media_removed") { + } else if (event === "mediascanner/media_removed") { root.remove(json[2].data.Path) } break |