cmathews393 / spotify-to-plex

A python script/app to sync Spotify Playlists into Plex (optionally via Lidarr)
GNU General Public License v3.0
43 stars 3 forks source link

Playlist sync fails when switching users #35

Open not-just-jack opened 3 weeks ago

not-just-jack commented 3 weeks ago

I have 4 managed users in Plex. The main users syncs all spotify playlists, the second users syncs about half the playlists, and the third, fourth, and fifth users don't have any that sync.

This is running on unraid. A screenshot of my container is below.

image

The plex usernames were copied from my plex admin account with a , in between each username. No spaces.

I've also attached the log from the last job. log.txt

Let me know if there is anything else I can provide or if you see anything wrong. Thanks.

cmathews393 commented 3 weeks ago

Can you pull 'spotiplex.log' from inside the container?

not-just-jack commented 3 weeks ago

Here's the full log from within the container.

spotiplex.log

I see that some of the playlists are erroring out with no authorization token, but it seems like that is a known issue.

It also looks like for some of the managed plex users, there seems to be an issue with the authorization token?

To add another layer to this. I created separate containers for each of the managed users and it works.

cmathews393 commented 3 weeks ago

Oh I know what the problem is. I am not sure why the second user doesn't sync everything, but the reason the third + users aren't syncing is because its trying to auth with the current user, which in the case of rotating through the users is user2, which doesn't have the required permissions to impersonate user3. I thought I fixed this a while ago, but I'll take a look at see what happened.

not-just-jack commented 3 weeks ago

Thanks!

In the interim, I have everyone syncing is separate containers...lol

cmathews393 commented 3 weeks ago

Are you on the latest version of the docker image? There are log messages that should be showing up that aren't.