lfcabend / mopidy-spotify-web

mopidy-spotify-web
Apache License 2.0
54 stars 15 forks source link

Spotify playlists support #5

Open pbogut opened 8 years ago

pbogut commented 8 years ago

Hi,

Thank you for this plugin, its awesome. The only issue I've got is playlist integration. Not sure if that's the problem with my configuration or something else but it is not possible to add songs to Spotify playlist. When I'm trying to add song to existing Spotify playlist Mopidy displays error message:

MPD: Playlist with scheme "spotify" can't store track scheme "spotify"

I can create a new playlist but it is not synchronized with Spotify.

Is there any solution for that?

Cheers, Pawel

lfcabend commented 8 years ago

Thank you for your feedback. I will double check this when I am back from vacation, but I believe that playlists are not played/retrieved/managed with the mopidy-spotify-web plugin, but rather the standard mopidy spotify plugin. The mopidy spotiy web plugin organizes your songs from spotify by album and artists. Playlist are managed by the mopidy spotify plugin. So if my understanding is correct this would be an issue on the mopidy spotify plugin itself and not the mopidy-spotify-web plugin. But I would have to double check this. The reason for me writing this plugin was that the original spotify plugin was limited to playlists. So i added support for albums and artists.

But the way I use mopidy is just by playing music. I would open my spotify app and add the song to the playlist and then refresh the list on mopidy.

So I will investigate this reported issue on a later stage and decide if I can/will implement it in the mopidy-spotify-web plugin or if it should be implemented in the mopidy-spotify plugin on which the web plugin depends.

pbogut commented 8 years ago

I think you're right, this is a problem with the mopidy-spotify. However, what I'm interested to achieve is to add a song to my library (formerly follow). Since mopidy-spotify is not aware of Your Music / Your Artists maybe thats something that this plugin should implement?

At Mopidy level I guess that has to be some kind of playlist. Do you think this is fisible to provide special playlist, and whenever you add song to that playlist it would be add to my songs in spotify?

lfcabend commented 8 years ago

I think it might be possible to implement this feature in the mopidy-spotify-web plugin, since the add track function is present in the spotify web api, see https://developer.spotify.com/web-api/add-tracks-to-playlist/.

I just have to see how to extend the plugin to intercept these request and make the appropriate call on the spotify api.

To be honest I will have to find some motivation to do this, since I personally would not use this feature, since I edit playlist using the spotify app and then just refresh the list in mopidy. But when I have some time i might look into it.

lfcabend commented 8 years ago

Just found out that there might be some changes coming:

https://github.com/mopidy/mopidy-spotify/issues/114 https://github.com/mopidy/mopidy-spotify/issues/110