#Need some help with language flags and counting audio

1 messages · Page 1 of 1 (latest)

blazing glen
#

I am pretty new to this and after some trial and error I have just finally managed to make kometa work with Plex in a synology container.

But I am struggling with the following. As I have a lot of files with dual audio and subtitles I wanted to create an overlay for tvshows, that have at least two audio streams and subtitles. The overlay should display dual audio and the language flag for subtitles.

For movies I only want dual audio, which worked fine. But for tv shows I am not able to show both.

I want to see, if a series has dual audio and if it has subtitles in German and/or English. What am I doing wrong? Or is it not possible?

I have used the following:

libraries:
  Filme:
    remove_overlays: false
    overlay_files:
    - default: language_count
      template_variables:
      minimum: 2
      use_subtitles: false
  Serien:
    remove_overlays: false
    overlay_files:
    - default: language_count
      template_variables:
      minimum: 2
      use_subtitles: false
    - default: languages
      template_variables:
        builder_level: season
    - default: languages
      template variables:
      builder_level: episode
    template_variables:
      languages:
      - de
      - en
      use_subtitles: true
      horizontal_position: left
      vertical_position: bottom
      group_alignment: vertical
      style: square
valid crescentBOT
#

Welcome @blazing glen!

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.

rocky seal
#

based on what you pasted, the indentation is wrong in several places. below should be corrected indent

#
libraries:
  Filme:
    remove_overlays: false
    overlay_files:
    - default: language_count
        template_variables:
          minimum: 2
          use_subtitles: false
  Serien:
    remove_overlays: false
    overlay_files:
    - default: language_count
        template_variables:
          minimum: 2
          use_subtitles: false
    - default: languages
        template_variables:
          builder_level: season
    - default: languages
        template variables:
          builder_level: episode
    template_variables:
      languages:
      - de
      - en
      use_subtitles: true
      horizontal_position: left
      vertical_position: bottom
      group_alignment: vertical
      style: square```
spare oxide
#

That last template_variables is at the library level and is fine.

blazing glen
#

template_variables: #<< What is this supposed to be for? it's out of place -> My attempt to show wich languages subs are inculded

rocky seal
spare oxide
#

What's wrong with the image you show there?

blazing glen
#

I want dual audio instead of multi subs. The flags on the left should indicate the language for the subtitles.

spare oxide
#

Can you provide a log of this happening?

#

If you were running this config:

  Serien:
    remove_overlays: false
    overlay_files:
    - default: language_count
      template_variables:
      minimum: 2
      use_subtitles: false

then those template variables aren't being applied as they are incorrectly indented and Kometa isn't seeing them.

blazing glen
#

I will try

blazing glen
rocky seal
#

is there still an issue?

blazing glen
#

The issue is, that I want the additonal language flags for subtitles.

rocky seal
#

did you update the code?

#

what is your current yml, using code block

blazing glen
#

I am sorry, I missed that the code above was updated

rocky seal
blazing glen
#

Not excatly, flags for subtitles and Dual Audio text if more than when audio is present

rocky seal
#

if you want them on the show poster, then you need to also have this for the show and not just season and episode

blazing glen
#

OK, thanks I will give it another try.

rocky seal
#

before your indentation was bad, so kometa didn't see that it was only season or episode and then applied the flags. however, when you updated the code and reran kometa, then it removed the flags from the show level because you didn't want them there

blazing glen
#

I think I have got it. I have to test it on the real database

blazing glen
#

Thank you, it worked!