{"action":"opened","issue":{"url":"https://api.github.com/repos/Fjuxx/pimatic-kodi/issues/7","labels_url":"https://api.github.com/repos/Fjuxx/pimatic-kodi/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Fjuxx/pimatic-kodi/issues/7/comments","events_url":"https://api.github.com/repos/Fjuxx/pimatic-kodi/issues/7/events","html_url":"https://github.com/Fjuxx/pimatic-kodi/issues/7","id":94905297,"number":7,"title":"currentArtist returned as empty array","user":{"login":"dgmltn","id":698270,"avatar_url":"https://avatars.githubusercontent.com/u/698270?v=3","gravatar_id":"","url":"https://api.github.com/users/dgmltn","html_url":"https://github.com/dgmltn","followers_url":"https://api.github.com/users/dgmltn/followers","following_url":"https://api.github.com/users/dgmltn/following{/other_user}","gists_url":"https://api.github.com/users/dgmltn/gists{/gist_id}","starred_url":"https://api.github.com/users/dgmltn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgmltn/subscriptions","organizations_url":"https://api.github.com/users/dgmltn/orgs","repos_url":"https://api.github.com/users/dgmltn/repos","events_url":"https://api.github.com/users/dgmltn/events{/privacy}","received_events_url":"https://api.github.com/users/dgmltn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T09:32:53Z","updated_at":"2015-07-14T09:32:53Z","closed_at":null,"body":"Sometimes (Perhaps it's when a movie is playing?) the currentArtist attribute is returned as an empty array, not a string as expected.\r\n\r\nA call to http://my.pimatic.ip/api/devices/kodi-player returns this:\r\n\r\n```\r\n{\r\n    device: {\r\n    id: \"kodi-player\",\r\n    name: \"Kodi\",\r\n    template: \"musicplayer\",\r\n    attributes: [\r\n    {\r\n        description: \"the current playing track artist\",\r\n        type: \"string\",\r\n        label: \"CurrentArtist\",\r\n        discrete: true,\r\n        name: \"currentArtist\",\r\n        value: [ ],\r\n        history: [\r\n            {\r\n                t: 1436861165012,\r\n                v: [ ]\r\n            },\r\n            {\r\n                t: 1436861225029,\r\n                v: [ ]\r\n            },\r\n            ...\r\n        ]\r\n    },\r\n    ...\r\n}\r\n```"}}