diff options
Diffstat (limited to 'app/api/MediaPlayer.qml')
-rw-r--r-- | app/api/MediaPlayer.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/api/MediaPlayer.qml b/app/api/MediaPlayer.qml index ffdb870..c7f4ff2 100644 --- a/app/api/MediaPlayer.qml +++ b/app/api/MediaPlayer.qml @@ -72,6 +72,9 @@ WebSocket { root.running = response.playing } } else if (verb == "metadata") { + root.title = response.title ? response.title : '' + root.artist = response.artist ? response.artist : '' + root.cover_art = response.image ? response.image : '' } break @@ -135,6 +138,7 @@ WebSocket { sendSocketMessage("subscribe", { value: "metadata" }) sendSocketMessage("playlist", 'None') sendSocketMessage("subscribe", { value: "playlist" }) + sendSocketMessage("metadata", 'None') break case WebSocket.Error: root.statusString = "WebSocket error: " + root.errorString |