varthe / Defaulterr

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

stream[field]?.toLowerCase is not a function #11

Open Arjailer opened 2 hours ago

Arjailer commented 2 hours ago

Getting lots of these errors when doing a dry run on my movie library - it might even be on every file as I'm not seeing any successful messages

2024-10-12T19:12:51.665Z [error]: Error while evaluating streams for filter: stream[field]?.toLowerCase is not a function. Aborting

My setup is currently pretty simple as I'm just getting started:

groups:
  everyone:
    - $ALL

filters:
  Films:
    everyone:
      audio:
        # first stereo track by default
        - include:
            channels: 2
        # fallback to any english track if stereo not available
        - include:
            language: English

I'm assuming channels is valid as it appears in the example.json in the repo, but I might be wrong

varthe commented 2 hours ago

Lets see your config file

Arjailer commented 2 hours ago

Just added it to the OP

varthe commented 19 minutes ago

Pull the latest image and try now

It was a quick fix for this issue but during I found another bug that took longer. All good on your end, I just forgot to test number values before releasing lol