Too Long; Didn't Read
Use Platypush to automatically keep track of the music you listen to from any of your devices. Store listening history to a local database, or synchronize it with a scrobbling service like last.fm. Use the Last.FM API to retrieve similar tracks. Generate a Discover Weekly playlist similar to Spotify's without relying on Spotify. Get the newly released albums and single by subscribing to an RSS feed. Create a weekly playlist with the new releases by filtering those from artists that you've listened to at least once.