Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Status for shared users #71

Open
ecleese opened this issue Jun 5, 2014 · 2 comments
Open

Sync Status for shared users #71

ecleese opened this issue Jun 5, 2014 · 2 comments

Comments

@ecleese
Copy link
Owner

ecleese commented Jun 5, 2014

raw xml located in: https://plex.tv/servers//sync_lists?auth_token=

@Arcanemagus
Copy link
Collaborator

Quoting @drzoidberg33:

The sync thing is a bit of a bitch. You can easily get the sync lists from plex.tv/servers/yourmachineid/sync_lists but it doesn't include the username, only a user_id. If you want username then you need to pull the friends list first as well as your own account data (as your own user_id is referenced as 1 locally).
So essentially you need to make 4 different calls (machine_id, sync_list, friends, account) to get a useful sync list.

@drzoidberg33
Copy link

@Arcanemagus @ecleese

The best solution for PlexPy was to write this stuff to a local db and reference it like that, otherwise the api calls take too long.

I store the machine_id in my config file and store a users table in my database which includes both friends and the own users account details. The user table is updated periodically (default every 12 hours).

This way I make one call to the sync list api and just call the usernames from my db. If a username has not yet been added to my local table it will just show as blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants