diff options
Diffstat (limited to 'app/api')
-rw-r--r-- | app/api/LightMediaScanner.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/LightMediaScanner.qml b/app/api/LightMediaScanner.qml index cbacb8c..112cb98 100644 --- a/app/api/LightMediaScanner.qml +++ b/app/api/LightMediaScanner.qml @@ -24,7 +24,7 @@ WebSocket { url: bindingAddress property string statusString: "waiting..." - property string apiString: "media-manager" + property string apiString: "mediascanner" property var verbs: [] property var items: [] property string payloadLength: "9999" @@ -69,10 +69,10 @@ WebSocket { case msgid.event: var payload = JSON.parse(JSON.stringify(json[2])) var event = payload.event - if (event == "media-manager/media_added") { + if (event == "mediascanner/media_added") { console.debug("Media is inserted") validateItem(json[2].data.Media) - } else if (event == "media-manager/media_removed") { + } else if (event == "mediascanner/media_removed") { var removed = 0 console.debug("Media is removed") player.stop() |