#Custom Template for overlay formatting errors

1 messages Β· Page 1 of 1 (latest)

junior jetty
#

Hi, I am trying to create a custom overlay by using the ribbon image from kometa but instead I intend to display ratings of imdb/tvdb/anidb depends on the library!
I am not very proficient in python but I asked a friend and used AI to fix the code but I am not sure what I am missing! Any help would be greatly appreciated πŸ™‚

I can attach the logs and custom template if required for assistance

cunning schoonerBOT
#

Welcome @junior jetty!

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.

dark fable
#

We will need a log showing the problem and the YAML you're using to offer anything but sympathy.

junior jetty
cunning schoonerBOT
#

πŸ“ If you want to review this again, diimaan:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

#
**User Info**

Author of Linked Message: diimaan
Person who Invoked the Command: Mr. Carrot
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: Kometa Info
Page 03: Kometa Summary Info
Page 04: Kometa Config.yml YAML Validation βœ…
Page 05: Plex Configuration - Section 1
Page 06: Rec 01 - ❌ [ERROR]
Page 07: Rec 02 - ❌ PLAYLIST ERROR
Page 08: Rec 03 - ⚠️ [WARNING]
Page 09: Rec 04 - ⚠️ REAPPLY / RESET OVERLAYS

junior jetty
dark fable
#

None of this belongs in the config:

metadata:
  operations:
    mass_update_general:
      libraries:
        - Movies
      exclude: []
      metadata:
        rating:
          sync_mode: sync
          imdb: true
          tmdb: true
          rotten_tomatoes: true
          metacritic: true
          anidb: false                    # Disable AniDB for general libraries.
          priority:
            - imdb                           # Primary source: IMDb.
            - tmdb                           # Fallback source: TMDb.
            - rotten_tomatoes                # Additional fallback.
            - metacritic                     # Additional fallback.

No idea where any of that would have come from.

#

The specific cause of the problem is this:

    template: ribbon_template

Which has to be, at minimum:

    template:
      name: ribbon_template
junior jetty
#

Ahh!

dark fable
#

But very little of that file looks valid

junior jetty
#

What I wanted to achieve was that, when the library of movies is scanned the rating overlay should have a priority for imdb. But in case the particular movie has no rating on imdb it should fall back to tmdb/rt etc!
I was not sure whether this can be achieved but thought of giving it a go πŸ™‚

sage talon
#

Ai isnt very good with kometa either btw

sage talon
junior jetty
#

Ohh! Is there any guide or has someone done this before?

dark fable
#

Are you trying to work with the rating overlay or the ribbon overlay?

junior jetty
#

I have just taken the blank yellow ribbon and trying to display rating on it!

dark fable
#

What I wanted to achieve was that, when the library of movies is scanned the rating overlay should have a priority for imdb. But in case the particular movie has no rating on imdb it should fall back to tmdb/rt etc!

You can update a rating to IMDB with a fallback to TMDB, etc.

You cannot however change the overlay based on which one got set.

#

This, for example:

libraries:
  Movies:
    operations:
      mass_audience_rating_update: 
        - imdb
        - tmdb
        - mdb_tomatoes

Would set the critic rating to whatever one of those returned a value first.

No IMDB? try TMDB. No TMDB? Try tomatoes

#

Now that there is a number in the critic rating, you could put that number on the overlay, but you could not display IMDB/TMDB/TOMATOES since the source will have been lost.

junior jetty
#

Understood! I would have the rating value such as 6.5 or 7.8 but I would not know what is the source

dark fable
#

correct.

junior jetty
#

Would it possible to display this number over the ribbon overlay?

dark fable
#

The ribbon overlay already has an icon on it; it seems that the number will be illegible.

But, sure you could draw the rating on the poster wherever you want.

junior jetty
#

Would it be possible then to use the default rating overlay but to display it slanted vertically or 45deg on the bottom right like how the ribbon appears πŸ˜…

#

I tried the default rating with template variables but not sure if I can skew or rotate the appearance

dark fable
#

I don't think text overlays can be rotated.

#

You could probably do it with a bunch of images of the rotated text, choosing the right one with a conditional; similar to the way the correct ribbon is selected.

junior jetty
#

Ahh I see!

junior jetty
dark fable
#

All that example does is stick the rating into the critic rating box.

Then in your overlay you'd use that rating.

#

As in this example:

overlays:
  backdrop:
    overlay:
      name: backdrop
      back_color: "#00000099"
      back_height: 100
      vertical_align: top
    plex_all: true
  mytext:
    overlay:
      name: text(Critic Rating is <<critic_rating>>)
      horizontal_offset: 0
      horizontal_align: center
      vertical_offset: 20
      vertical_align: top
      font_size: 63
      font_color: "#FFFFFF"
    plex_all: true
junior jetty
#

Thanks for this. I will explore a few more of the configs and see what I can come up with πŸ™‚

warm plumeBOT
#

chazlarson used !aenh

@junior jetty, anything else needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.