hass-music-assistant
hass-music-assistant copied to clipboard
Unable to sync new playlist from Spotify
What version of Music Assistant has the issue?
2022.8.4
The problem
I tried to create new playlist on Spotify (premium account) then back to Music Assisstant to reload new data but the sync action takes very long time (10-20 minutes) and still unable to get new playlist.
How to reproduce
Step 1: go to Spotify web to create new playlist
Step 2: go to Music Assistant web, click to the "Run Sync" button or "Force full sync", the loading icon displays forever and unable to get new playlist
Step 3: Go to the integration menu of HA, click to Reload on Music Assistant, the new playlist is updated very fast.
Expectation:
- When click "Run Sync" or "Force full Sync", the new playlist from Spotify is updated quickly
- The new playlist is updated automatically to Music Assistant after several minutes (polling).
Relevant log output
No response
Additional information
No response
What version of Home Assistant Core are your running
2022.8.6
What type of installation are you running?
Home Assistant Supervised
On what type of hardware are you running?
Raspberry Pi
Hi @dinhchinh82 Thanks for filling your issue. I will also try this for myself (not a daily action). Some questions though: -Does playback from Spotify work? -Any errors in the log while you sync? Best Eric
I can reproduce your issue. When I navigate via browse, to the Spotify playlists, the new list is there (same for you?), but it doesn't show up in the main playlist view. Work around: browse to the playlist and open it, Select the 3 dots in the upper right corner and select 'add to library'.
@erkr thank you for your classification.
By the way, is able to update the new playlist from Spotify to MA automatically? May be scan new data from Spotify every 10 seconds and put into MA.
That should automatically update. Don't know the exact frequency, but it's done ever few hours
Every 3 hours I believe
Yep something like that sounds familiar
https://github.com/music-assistant/home-assistant-addon
Please move to V2 to resolve this. Note that it is still in beta so other issues may arise. However I am closing this as no further investigation will be done as V1 is no longer supported.
This can be reopened if it is still an issue