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

[Feature Request] Jellyfin sync #87

Open
Lucifer1903 opened this issue Jun 20, 2023 · 7 comments
Open

[Feature Request] Jellyfin sync #87

Lucifer1903 opened this issue Jun 20, 2023 · 7 comments

Comments

@Lucifer1903
Copy link

Can this be used to sync between 2 jellyfin users?

@luigi311
Copy link
Owner

You might be able to just add the same jellyfin server twice and use the user mapping to link the two users. Be sure to test it with the dryrun on just in case but it shouldn't cause any issues though.

@Tuckie
Copy link

Tuckie commented Aug 27, 2023

I just tried this to sync statuses on two users on a single Jellyfin server. and it didn't work. (zero watch statuses synced).

I had the server and token listed twice with user mapping between the two users. It showed all of the episodes getting pulled in, but ended with:

[INFO]: server 1 watched that needs to be synced to server 2:
{}
[INFO]: server 2 watched that needs to be synced to server 1:
{}

Checking the logs with debug enabled was full of these type of entries at the end: Removing SPEED from Anime due to exact match

Any ideas why this is happening?

@C0NTi
Copy link

C0NTi commented Oct 26, 2023

To hazard a guess, server 1 and server 2 are exactly the same, the both have exactly the same users so they are both in sync, nothing to change.

The api key isnt specific to a user in jellyfin, and there is no way as far as i can tell to use the user mapping to exclude one user from server 1 and exclude the other from server 2

image

@burneystarke
Copy link

Could you just make multiple API keys for the same server?

@tonyzzz321
Copy link

You might be able to just add the same jellyfin server twice and use the user mapping to link the two users. Be sure to test it with the dryrun on just in case but it shouldn't cause any issues though.

I added the same server twice and then mapped the 2 users together. When I dry-run, I get the below exception.

[ERROR]: Jellyfin: Failed to get watched, Error: Conflicting values for subkey 'Movies' under key 'user1'
[ERROR]: Conflicting values for subkey 'Movies' under key 'user1'
[ERROR]: Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 558, in get_watched
    user_watched_combine = combine_watched_dicts(user_watched)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/src/watched.py", line 25, in combine_watched_dicts
    raise ValueError(
ValueError: Conflicting values for subkey 'Movies' under key 'user1'

@luigi311
Copy link
Owner

I think this currently runs into issues, i'm currently rewriting a bunch of things and will be testing with two plex and two jellyfin servers as well to make sure thats working.

@Tuckie
Copy link

Tuckie commented Jan 10, 2024

That's great to hear! My use case is syncing between a "family" account and individual user accounts on the same jellyfin server.

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

No branches or pull requests

6 participants