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

[BUG] Sync fails when Live TV is enabled #168

Open
1 of 4 tasks
misleadingrhino opened this issue May 10, 2024 · 3 comments
Open
1 of 4 tasks

[BUG] Sync fails when Live TV is enabled #168

misleadingrhino opened this issue May 10, 2024 · 3 comments
Labels
help wanted Extra attention is needed jellyfin

Comments

@misleadingrhino
Copy link

Describe the bug
Process fails out with error

[ERROR]: Jellyfin: Failed to get watched, Error: Conflicting values for subkey 'Live TV' under key '(user removed)'

To Reproduce
Run sync with Live TV Enabled

Expected behavior
Sync to work

Logs
Docker Compose

  jellyplex-watched:
    image: luigi311/jellyplex-watched:latest
    container_name: jellyplex-watched
    restart: always
    environment:
      - DRYRUN=False
      - DEBUG=True
      - DEBUG_LEVEL=info
      - RUN_ONLY_ONCE=False
      - SLEEP_DURATION=3600
      - LOGFILE=/tmp/log.log
      - MARKFILE=/tmp/mark.log
      - USER_MAPPING={"plex_user":"jellyfin_user"}
      - LIBRARY_MAPPING={"TV Shows":"Shows"}
      - BLACKLIST_LIBRARY=
      - WHITELIST_LIBRARY=
      - BLACKLIST_LIBRARY_TYPE="Live TV"
      - WHITELIST_LIBRARY_TYPE=
      - BLACKLIST_USERS=
      - WHITELIST_USERS=
      - PLEX_BASEURL=(removed}
      - PLEX_TOKEN=$PLEX_TOKEN
      - JELLYFIN_BASEURL=(removed)
      - JELLYFIN_TOKEN=$JELLYPLEX_JELLYFIN_API
      - SSL_BYPASS=True
      - SYNC_FROM_PLEX_TO_JELLYFIN=True
      - SYNC_FROM_JELLYFIN_TO_PLEX=True
      - SYNC_FROM_PLEX_TO_PLEX=False
      - SYNC_FROM_JELLYFIN_TO_JELLYFIN=False

Relevant Logs

[ERROR]: Jellyfin: Failed to get watched, Error: Conflicting values for subkey 'Live TV' under key 'jellyfin_user'
[ERROR]: Conflicting values for subkey 'Live TV' under key 'jellyfin_user'
[ERROR]: Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 542, 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 'Live TV' under key 'jellyfin_user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/src/main.py", line 394, in main
    main_loop()
  File "/app/src/main.py", line 336, in main_loop
    server_2_watched = get_server_watched(
                       ^^^^^^^^^^^^^^^^^^^
  File "/app/src/main.py", line 185, in get_server_watched
    return server_connection[1].get_watched(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/src/jellyfin.py", line 551, in get_watched
    raise Exception(e)
Exception: Conflicting values for subkey 'Live TV' under key 'jellyfin_user'

Type:

  • Docker Compose
  • Docker
  • Unraid
  • Native
@misleadingrhino
Copy link
Author

I got around this by whitelisting the TV Shows and Movies library for now.

@luigi311
Copy link
Owner

luigi311 commented Jun 2, 2024

Interesting i thought i had gotten around this by excluding the type that they use for live tv. I dont have a live tv library though so i was never really able to test it.

@misleadingrhino
Copy link
Author

As best I can tell, Jellyfin doesn't have a separate library type for Live TV. It seems to be showing up as "Shows."

@luigi311 luigi311 added help wanted Extra attention is needed jellyfin labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed jellyfin
Projects
None yet
Development

No branches or pull requests

2 participants