{"action":"created","issue":{"url":"https://api.github.com/repos/duncan3dc/sonos/issues/25","labels_url":"https://api.github.com/repos/duncan3dc/sonos/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/duncan3dc/sonos/issues/25/comments","events_url":"https://api.github.com/repos/duncan3dc/sonos/issues/25/events","html_url":"https://github.com/duncan3dc/sonos/issues/25","id":85687570,"number":25,"title":"Add Track from Spotify: bad title, no preview image ","user":{"login":"breath20","id":1160086,"avatar_url":"https://avatars.githubusercontent.com/u/1160086?v=3","gravatar_id":"","url":"https://api.github.com/users/breath20","html_url":"https://github.com/breath20","followers_url":"https://api.github.com/users/breath20/followers","following_url":"https://api.github.com/users/breath20/following{/other_user}","gists_url":"https://api.github.com/users/breath20/gists{/gist_id}","starred_url":"https://api.github.com/users/breath20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breath20/subscriptions","organizations_url":"https://api.github.com/users/breath20/orgs","repos_url":"https://api.github.com/users/breath20/repos","events_url":"https://api.github.com/users/breath20/events{/privacy}","received_events_url":"https://api.github.com/users/breath20/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duncan3dc/sonos/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-06T03:24:44Z","updated_at":"2015-09-08T23:24:00Z","closed_at":null,"body":"So i have been playing around with adding a track via streaming or a queue that is a spotify track. When i do it plays fine, but on the sonos app it does not have the correct title or album art (its blank)\r\n\r\nI tried pushing that information into the track but it didn't seem to take so i'm not sure whats going on. \r\n\r\n\r\n$track = new \\duncan3dc\\Sonos\\Tracks\\Track(\"x-sonos-spotify:6ZOBP3NvffbU4SZcrnt1k6?sid=12&flags=32&sn=1\");\r\n$queue->addTrack($track);\r\n$controller->selectTrack(0);\r\n$controller->play();\r\n\r\nIs this not supported, am i doing something wrong ? I'm guessing i'm doing something wrong, any help would be greatly appreciated. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/duncan3dc/sonos/issues/comments/138729826","html_url":"https://github.com/duncan3dc/sonos/issues/25#issuecomment-138729826","issue_url":"https://api.github.com/repos/duncan3dc/sonos/issues/25","id":138729826,"user":{"login":"dccampbell","id":714546,"avatar_url":"https://avatars.githubusercontent.com/u/714546?v=3","gravatar_id":"","url":"https://api.github.com/users/dccampbell","html_url":"https://github.com/dccampbell","followers_url":"https://api.github.com/users/dccampbell/followers","following_url":"https://api.github.com/users/dccampbell/following{/other_user}","gists_url":"https://api.github.com/users/dccampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dccampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dccampbell/subscriptions","organizations_url":"https://api.github.com/users/dccampbell/orgs","repos_url":"https://api.github.com/users/dccampbell/repos","events_url":"https://api.github.com/users/dccampbell/events{/privacy}","received_events_url":"https://api.github.com/users/dccampbell/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T23:24:00Z","updated_at":"2015-09-08T23:24:00Z","body":"This might be relevant to this issue, I just noticed that I never get album art when streaming Spotify, or more accurately I get a malformed image url. \r\n\r\nIt looks like in this case the albumArtURI is a complete url as opposed to a relative path, so the bit at the bottom of `Track.php` where the URI is appended to the controller IP throws it off (resulting in albumArt returning `http://sonos-ip:1400http://spotify-img-url`).\r\n\r\nI think it just needs a check around the sprintf call to make sure $art isn't a complete url first."}}