luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
394 stars 22 forks source link

[Feature Request] Emby instead of Jellyfin #56

Closed shadowtek closed 4 months ago

shadowtek commented 1 year ago

Please is it possible fro this to work with Emby instead of Jellyfin

luigi311 commented 1 year ago

Considering that jellyfin was a fork of emby and it looks like alot of the api related stuff is the same and i am still using the emby token/authorization structure instead of the new jellyfin structure i think you might be able to just put in your emby server related stuff under jellyfin and see if it works. I would recommend using dryrun and using a test user account first. Ill see if i can add in proper emby support though after we finish up #47 that way i can migrate jellyfin to the new authentication setup instead of using the deprecated emby version.

shadowtek commented 1 year ago

Thank you,

I will use your unraid docker and test this out tonight!

Legend. Thanks

JabbaDaHutt762 commented 1 year ago

I have tried to use for emby and it seemed to work but generated the following:

Plex: Generating watched for jabba7621 in library Christmas Music Plex: Generating watched for jabba7621 in library MusicPlex: Generating watched for jabba7621 in library Music Videos

Plex: Generating watched for jabba7621 in library Christmas Movies Plex: Generating watched for jabba7621 in library Kids Movies Plex: Generating watched for jabba7621 in library Movies Plex: Generating watched for jabba7621 in library TV Shows Plex: Generating watched for jabba7621 in library Christmas Music Plex: Generating watched for jabba7621 in library Music Plex: Generating watched for jabba7621 in library Music Videos Jellyfin: Generating watched for jabba7621 in library Movies Jellyfin: Generating watched for jabba7621 in library TV shows Jellyfin: Generating watched for jabba7621 in library Kids Jellyfin: Generating watched for jabba7621 in library Christmas Movies Jellyfin: Generating watched for jabba7621 in library Live TV Jellyfin: Generating watched for jabba7621 in library Live TV Jellyfin: Generating watched for jabba7621 in library Top Picks Jellyfin: Generating watched for jabba7621 in library Top Picks [ERROR]: Jellyfin: Failed to get watched, Error: Conflicting values for subkey 'Live TV' under key 'jabba7621' [ERROR]: Conflicting values for subkey 'Live TV' under key 'jabba7621' [ERROR]: Traceback (most recent call last): File "/app/src/jellyfin.py", line 520, in get_watched user_watched_combine = combine_watched_dicts(user_watched) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/src/watched.py", line 19, in combine_watched_dicts raise ValueError( ValueError: Conflicting values for subkey 'Live TV' under key 'jabba7621'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/app/src/main.py", line 382, in main main_loop() File "/app/src/main.py", line 324, in main_loop server_2_watched = get_server_watched( ^^^^^^^^^^^^^^^^^^^ File "/app/src/main.py", line 172, in get_server_watched return asyncio.run( ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/app/src/jellyfin.py", line 529, in get_watched raise Exception(e) Exception: Conflicting values for subkey 'Live TV' under key 'jabba7621'

Retrying in 3600.0

I did try to blacklist library "Live TV" and "Top Picks" to see if it would just ignore it and move on but it seems to have hung up on that error and decided to give up. It never gets to the music libraries or the music video library. I dont know jack about coding and im not even 100% sure what im reading here so figured id post it for you geniuses.

luigi311 commented 4 months ago

Moving over to #154 since a lot has changed since this ticket was first opened. I have started to implement emby support in a emby branch and is ready for testing by others.