varthe / Defaulterr

Change the default audio and subtitle streams for items in Plex per user based on codec, language, keywords, and more
46 stars 0 forks source link

Error fetching users from server: No response received. #22

Closed MrOS88 closed 1 month ago

MrOS88 commented 1 month ago

Hi, I'm using my Plex server as a single user (I guess this means owner?) and I don't have Plex Pass. When starting the container I get the following error:

2024-10-19T13:10:08.319Z [info]: YAML file is valid according to the schema. 2024-10-19T13:10:08.327Z [info]: Server is running on port 3184 2024-10-19T13:10:13.393Z [error]: Error fetching users from server: No response received.

This is my config.yaml file:


# REQUIRED
plex_server_url: "http://x.x.x.x:32400"
plex_owner_name: "owner" # Use this value in place of username to include the owner in groups
plex_owner_token: "xxxxx"
plex_client_identifier: "xxxxx" # See README on how to obtain
# REQUIRED END

# RUN SETTINGS
dry_run: True # For testing filters; won't update users. Recommended to test a few times to ensure filters work.

# PARTIAL RUN: Updates newly added media since the last run.
# WARNING: The first run will update all existing media. Subsequent runs will be faster.
partial_run_on_start: False
partial_run_cron_expression: "" # E.g., '0 3 * * *' to run every day at 3:00 am. See crontab.guru
# RUN SETTINGS END

# GROUPS
groups:
  allUsers:
    - owner
# GROUPS END

# FILTERS - See README for explanation
filters:
  Movies:
    allUsers:
      audio:
        - include:
            language: English # Needs to be in the original language, e.g Español for Spanish
            # languageCode: eng # Alternative to the above, e.g. jpn for Japanese
          exclude:
            codec: truehd
            extendedDisplayTitle: commentary
        - include:
            language: English
varthe commented 1 month ago

Hi it's trying to grab users with access to your server, which there aren't any. I'll push out a fix in a bit

MrOS88 commented 1 month ago

Hi @varthe, I just tested it and it's working now 🙂 But I have another question. Does the code support listing multiple codecs under exclude such as the following:

filters:
  Movies:
    allUsers:
      audio:
        - include:
            language: English  # Needs to be in the original language, e.g Español for Spanish
            # languageCode: eng # Alternative to the above, e.g. jpn for Japanese
          exclude:
            codec: 
              - truehd
              - dca
              - dca-ma
            extendedDisplayTitle: commentary

I'm trying to exclude TRUE HD, DTS, DTS HD-MA but it's not working, maybe this codec key does not support a list?

varthe commented 1 month ago

I thought you were on docker? I haven't updated the docker image yet haha just finishing up a few more changes.

All fields including codec only take one word or phrase. So right now it's not possible to filter out multiple codecs in one go. If you give me until tomorrow I can add that, shouldn't be too difficult

MrOS88 commented 1 month ago

I am on Docker but I just built it myself to test it. That would be awesome!

varthe commented 1 month ago

Managed to sneak it in :) Pull the latest image and check the new config

MrOS88 commented 1 month ago

Works as expected now, great project :)