If you want to switch from Spotify to Apple Music, you can use a third-party app to transfer your playlists.
It's easy to put a song on repeat on Apple Music on your computer. You can also put a playlist or album on repeat.