{"action":"created","issue":{"url":"https://api.github.com/repos/mopidy/mopidy/issues/713","labels_url":"https://api.github.com/repos/mopidy/mopidy/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/mopidy/mopidy/issues/713/comments","events_url":"https://api.github.com/repos/mopidy/mopidy/issues/713/events","html_url":"https://github.com/mopidy/mopidy/issues/713","id":29516501,"number":713,"title":"Mopidy chokes on huge spotify playlist while using http ws interface","user":{"login":"mrvanes","id":1901782,"avatar_url":"https://avatars.githubusercontent.com/u/1901782?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvanes","html_url":"https://github.com/mrvanes","followers_url":"https://api.github.com/users/mrvanes/followers","following_url":"https://api.github.com/users/mrvanes/following{/other_user}","gists_url":"https://api.github.com/users/mrvanes/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvanes/subscriptions","organizations_url":"https://api.github.com/users/mrvanes/orgs","repos_url":"https://api.github.com/users/mrvanes/repos","events_url":"https://api.github.com/users/mrvanes/events{/privacy}","received_events_url":"https://api.github.com/users/mrvanes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mopidy/mopidy/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/mopidy/mopidy/labels/HTTP","name":"HTTP","color":"fef2c0"},{"url":"https://api.github.com/repos/mopidy/mopidy/labels/MPD","name":"MPD","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-03-16T13:15:16Z","updated_at":"2015-01-26T23:44:02Z","closed_at":null,"body":"I added (follow) this playlist in spotify online client:\r\nhttps://play.spotify.com/user/armadamusicofficial/playlist/5lSgExb6yTKfLusGag7bm7\r\nIt contains 1000 songs.\r\n\r\nWhen I click the playlist in my MPD client (Rompr, HTTP interface enabled) mopidy fails to load the playlist. If I disable the http interface, the playlist loads instantly."},"comment":{"url":"https://api.github.com/repos/mopidy/mopidy/issues/comments/71562696","html_url":"https://github.com/mopidy/mopidy/issues/713#issuecomment-71562696","issue_url":"https://api.github.com/repos/mopidy/mopidy/issues/713","id":71562696,"user":{"login":"fatg3erman","id":1430781,"avatar_url":"https://avatars.githubusercontent.com/u/1430781?v=3","gravatar_id":"","url":"https://api.github.com/users/fatg3erman","html_url":"https://github.com/fatg3erman","followers_url":"https://api.github.com/users/fatg3erman/followers","following_url":"https://api.github.com/users/fatg3erman/following{/other_user}","gists_url":"https://api.github.com/users/fatg3erman/gists{/gist_id}","starred_url":"https://api.github.com/users/fatg3erman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatg3erman/subscriptions","organizations_url":"https://api.github.com/users/fatg3erman/orgs","repos_url":"https://api.github.com/users/fatg3erman/repos","events_url":"https://api.github.com/users/fatg3erman/events{/privacy}","received_events_url":"https://api.github.com/users/fatg3erman/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:44:02Z","updated_at":"2015-01-26T23:44:02Z","body":"It's probably too late now but for the sake of completeness I'll add my comments. I'm the developer of Rompr and this is indeed rompr's problem.\r\n\r\nRompr does use the HTTP API if it's available. I haven't tried to reproduce this problem but I'm certain I know what the issue is. There's a \"problem\" - for want of a better word - with mopidy-spotify in that sometimes when you load a playlist the tracks have not been loaded and what you get in the tracklist is:\r\n\r\n    [loading...] spotify:track:4u739423894y23nbcy329\r\n    [loading...] spotify:track:43u094nc3u2nc32yn9n32\r\n\r\nI've seen this happen sometimes with my personal playlists, and very much more frequently with playlists loaded via the browse function provided by mopidy-spotify and mopidy-spotify-tunigo. As a client/GUI developer my focus is on creating the best (and prettiest) experience for the users, so I implemented a workaround in rompr where I force a playlist lookup with mopidy.playlists.lookup. This returns an array of tracks, and I then just use mopidy.tracklist.add to add that list.. It never occurred to me that anybody would do something as crazy as create a playlist with 1000 tracks;)  and I'd wager my house that either mopidy or the browser is choking on such a huge array. When using the MPD interface, rompr just loads the playlist and trusts to luck.\r\n\r\nSo from my point of view it would be good if the [loading...] thing could be got rid of, then I could remove the workaround. Or, once the playlists.lookup returns, could I just load the playlist rather than adding all the tracks?"}}