mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Albums, singles and playlists, online and in the Library, end with "Suggested songs": up to ten songs like the ones above that the collection does not hold yet, each with a preview, an add button and a click or tap that downloads it. On a user playlist the add button adds the song there and it leaves the suggestions; elsewhere it opens the playlist picker. Phones list the songs as rows, desktop in the page's song table. Suggestions come from a new optional extension method, getRelatedTracks, which extensions declare with the relatedTracks capability: it takes up to three of the collection's songs and returns songs in the shape of search results. The extension most seeds came from is preferred so it can use their IDs. Without such an extension, the first metadata provider is searched by the collection's artists. A refresh button starts from other songs, and loaded suggestions stay for ten minutes.