FOSS Local Media player server with Spotify algorithm support?

Hey,

Does anyone have recommendations for a media player that can be used to stream Local media as well as use Spotify as a backend?

I’m using Snapcast for my entire home audio, with libspot as the backend to play Spotify through my speakers, though I’m trying to get off Spotify because it’s inconsistent, and because of the lag in controls since it’s cloud based.

I understand MPD or Mopidy could be of use, but I think I would be missing one piece of the puzzle: Spotify’s autoplay algorithm - That’s the only thing still keeping me on their service.

Well, I would also have to download every song I want to play, but I don’t think that will present a significant issue.