#Year Overlay Validation Error: "year attribute <<int_year:<<year>>,1800,2026>> must be an integer be

1 messages · Page 1 of 1 (latest)

strange venture
#

I'm using ChatGPT to navigate setting up the following scenario: I want to match Plex movies/posters (metadata) to the same movie in Radarr. We are using Radarr as the source and performing lookups for content to post accurate metadata back to the Plex movie.

Currently, when applying the year overlay in Kometa version 2.2.0, I encounter the following validation error:

Metadata File Error:
|===================================================================|
| <<radarr>> Metadata File |
|===================================================================|
| |
| Validating Method: year |
| Value: <<int_year:<<year>>,1800,2026>> |
| Metadata File Error: year attribute <<int_year:<<year>>,1800,2026>> must be an integer between 1800 and 2026 |

Config & Files Overview
The following key files are part of the setup and have been customized or examined during troubleshooting:

  1. config/config.yml — Main Kometa configuration, defining libraries, overlays, metadata files, cache settings, and Plex/Radarr connection details.
  2. config/Movies/metadata.yml — Metadata file referencing Radarr movie metadata, including the problematic year attribute with syntax <<int_year:<<year>>,1800,2026>>.
  3. defaults/overlays/year.yml — Year overlay template designed to create year badges on movie posters, using font fonts/Inter-Bold.ttf and applying the year as an integer.
  4. defaults/overlays/ratings.yml, streaming.yml, languages.yml — Other overlays enabled alongside year.
  5. fonts/Inter-Bold.ttf — Font file verified to be in place and correctly referenced by overlays.
  6. Cache has been cleared multiple times to rule out stale data issues.

Running Kometa with the command:python kometa.py --run overlay --libraries Movies

pine condorBOT
#

Welcome @strange venture!

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.

pastel canopy
#

chatgpt is terrible for kometa

#

it never gives the correct info or makes a correct yaml file for kometa

strange venture
#

I'm not a developer, but technical to challenge it. If you have a better resource, I'm all ears. 🙂

pastel canopy
#

the wiki gives pretty good examples

strange venture
#

I don't understand the wiki. ChatGPT (although wrong I assume) is guiding me thru the setup, which included a bunch of folers, .yml files, and updating them all over the place. I need baby steps like it can offer. I don't feel the wiki is helpful for me.

pastel canopy
#

other than the wiki and this discord there isnt really anything else. theres no videos or anything like that

#

kometa is a pretty technical tool

strange venture
#

Bummer. Does my problem make sense? It had me create a metadata.yml file, I was missing a year.yml file, and have been updating the overlays.yml as well. The wiki makes it look like I didn't need any of that and to just make updates to the main config.yml file.

pastel canopy
#

most of the stuff you want to do are included as defaults in kometa and rather trivial to do. BUT you want to use radarr as your truth. thats the biggest hurdle.

#

not sure how kometa would do that

#

the only thing kometa can do to the arrs is add missing movies from collections and tag

strange venture
#

I think it's calling the radarr api, getting the data I want, like year, and then using that data to overlay plex posters. So it pulls 2005 as a year and tries to write it into Kometa to do it's thing . The variable being used for year is where it's erroring out. I think it's stuck trying to fill the variable in the metadata.yml file. What needs to change in that file to get it to work in kometa?

pastel canopy
#

whats calling the radarr api? kometa cant do that. it can only add movies to radarr and tag things. thats all

#

it wont return any data from the arrs

#

kometa pulls info from plex for things like <<year>> etc etc

strange venture
#

My issue is probably using ChatGPT. Here is what it says regarding your question:

"Kometa uses the Radarr API to:

  1. Get the list of movies Radarr knows about
  2. Match those to movies in Plex (using TMDb or IMDb IDs)
  3. Pull metadata and tags from Radarr for those movies
  4. Use that metadata when building overlays, collections, or updating Plex metadata

When Kometa queries Radarr’s API, it retrieves detailed information about each movie Radarr manages—such as title, release year, TMDb/IMDb IDs, and more."

pastel canopy
#

something like this

overlays: 
  year
    overlay:
      name: text(<<originally_available[%Y]>>)
      horizontal_offset: 0
      horizontal_align: center
      vertical_offset: 150
      vertical_align: bottom
      font_size: 63
      font_color: "#FFFFFF"
      back_color: "#00000099"
      back_radius: 30
      back_padding: 30
    plex_all: true

would place the originally available year on the posters from plex

pastel canopy
pastel canopy
#

same for streaming and languages

#
libraries:
  Movies:
    overlay_files:
      - default: streaming
  TV Shows:
    overlay_files:
      - default: streaming
strange venture
pastel canopy
#

it would go into a yaml file that is not your config.yml file

#

and then you would need to call that file from your config

strange venture
#

Got it

pastel canopy
#
libraries:
  Movies:
    overlay_files:
      - file: "ENTER FILE PATH HERE"
#

BTW most people here will have no problem guiding you through kometa. We would much rather have you get it working correctly than struggling through chatgpt

#

its one of the main reasons we have the defaults

strange venture
# pastel canopy ``` libraries: Movies: overlay_files: - default: streaming TV Show...

This is in the config.yml file. Here is how ChatGPT has me using that section:
ibraries:
Movies:
delete_collections: true
remove_overlays: true
metadata_files:
- config/Movies/metadata.yml
overlay_files:
- default: ratings
template_variables:
rating1: critic
rating1_image: imdb
rating2: audience
rating2_image: rt_popcorn
rating3: user
rating3_image: tmdb
- default: streaming
- default: languages
- default: year

Looks like I'm missing the path to the overlays.yml file where the other snippet of code you gave me would go.

dawn crownBOT
#
Using Code Blocks

Please use code blocks when sending any code-related text (such as error messages or configuration file extracts.)

The Grave Accent key (`) is used to define code blocks and is typically found to the left of the number 1 key on a standard keyboard.

If you are posting any yaml-formatted text (such as collections), you can add yaml to your Grave Accent keys for coloured formatting. See the below sample text and output

YOU TYPE THIS

`​`​`yaml
collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
`​`​`

DISCORD DISPLAYS

collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
strange venture
#

That is aweome! Thank you.

pastel canopy
#
delete_collections: true
remove_overlays: true

You likely dont need these

#

they are in the wrong spot anyway and not useful for you. remove_overlays will remove overlays every kometa run

#

default: year this also isnt a thing

#

it would be the

- file: config/ENTER FILE PATH
#

also missing - file: here config/Movies/metadata.yml

#

also I would create a seperate test library before doing runs on any main libraries

#

kometa runs can take hours depending on what your doing and how much media you have

strange venture
#

Does this look better:

  Movies:
    metadata_files:
    - file: config/Movies/metadata.yml
    overlay_files:
    - file: config/Movies/overlays.yml
    - default: ratings
      template_variables:
        rating1: critic
        rating1_image: imdb
        rating2: audience
        rating2_image: rt_popcorn
        rating3: user
        rating3_image: tmdb
    - default: streaming
    - default: languages
strange venture
#

I've been reading. I think I'm going to get rid of the metadata and overlay file and just use the .config file and template_variables. I'll test this out and then report back to close this. Thanks for the help!!!

brisk mica
strange venture
# brisk mica What does the wiki need to make it useful? Happy to add or point to things that...

I spent some time reading the wiki last night. Once I got over the fact that I didn't need all the "extra" that ChatGPT had me creating, I was able to see how downloading and then changing the main config.yml using the structure/elements that the wiki outlined, I understood much better. At first I was trying to find yml files (like metadata.yml and overlays.yml) and couldn't, so I was frustrated that the documentation didn't include that info. Now I undertand those were ways GPT was designing my solution and not on Kometa or the wiki. Really appreciate all of your support on this!