#Set metadata_language for content with specific audio_language

1 messages · Page 1 of 1 (latest)

merry pivot
#

I'm trying to set the metadata_language in plex for every movie that has a german audio track available. All other movies and the library default are set to english metadata_language.

I'm very new to kometa and editing the yml config so what I tried is probably completely wrong but this is what I currently have as a metadata_match_audio_language.yml which I'm referencing in the config.

metadata: movies: metadata_language: de plex_search: all: audio_language: de

before that I also tried with match similar to how the wiki says:

metadata: movies: match: audio_language: de metadata_language: de

Any help would be appreciated. Thank you

cinder inletBOT
#

Welcome @merry pivot!

It looks like you have not yet completed the id:customize section of our Discord server, this will allow us to help you quicker.

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

merry pivot
#

I think currently kometa tries to find a movie called "movies", I'm unsure how to make sure it checks all movies irrespective of their title and just checks for their audio language

lavish hearth
#

Well let's start with... where in our wiki did you find metadata_language?

#

We'd need more context please... is there a meta.log of what you are running and the error?

limpid steeple
#

However, you can't do what you want here with a metadata file, since a metadata file can't use a plex search.

#
collections:
  set_de_md_lang:
    plex_search:
      all:
        audio_language: de
    item_metadata_language: de
    build_collection: false
merry pivot
#

oh I see, thank you so much.

To clarify, I had found metadata_language in the metadata_files wiki under advanced attributes https://metamanager.wiki/en/latest/files/metadata/?h=metadata_language#advanced-attributes

I had falsely assumed I could use metadata_files to just write metadata to all files that "match" a criteria described under matching items in that wiki page because it said one definition can match and edit multiple items.

This is the code that worked (had to change the value for item_metadata_language as "de" was not a valid value as I initially thought):

  set_de_md_lang:
    plex_search:
      all:
        audio_language: de
    item_metadata_language: de-DE
    build_collection: false```

Thank you again for helping and providing the solution.