hass-music-assistant icon indicating copy to clipboard operation
hass-music-assistant copied to clipboard

Unable to sync new playlist from Spotify

Open dinhchinh82 opened this issue 2 years ago • 6 comments

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.

image

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:

  1. When click "Run Sync" or "Force full Sync", the new playlist from Spotify is updated quickly
  2. 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

dinhchinh82 avatar Sep 14 '22 08:09 dinhchinh82

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

erkr avatar Sep 14 '22 12:09 erkr

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 avatar Sep 14 '22 12:09 erkr

@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.

dinhchinh82 avatar Sep 15 '22 11:09 dinhchinh82

That should automatically update. Don't know the exact frequency, but it's done ever few hours

erkr avatar Sep 15 '22 12:09 erkr

Every 3 hours I believe

OzGav avatar Sep 15 '22 12:09 OzGav

Yep something like that sounds familiar

erkr avatar Sep 15 '22 13:09 erkr

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.

OzGav avatar Mar 10 '23 23:03 OzGav

This can be reopened if it is still an issue

OzGav avatar Mar 24 '23 13:03 OzGav