#Default genre History does not work with append function?

1 messages · Page 1 of 1 (latest)

frigid ginkgo
#

Sorry startet this as a issue?
https://github.com/Kometa-Team/Kometa/issues/2649

Version Number
2.2.0

What branch are you on?
master

Describe the Bug
Hi All

So after allot of testing, I can see that the append function to default genre collection History doesn't work.
I have tested this with other genres and there it works fine.

Default genre History --> Append Historie genre in Danish.
Deleting all Historie/History collection and running Kometa twice.

See picture...

In Discord the teori was that I needed to have a single movie with "History" so Kometa could create that with the default icon and append the other Historie genre to that collection.
But no matter what I do it will not do the append.

My logfile is almost 60mb and it does run to the finnish.
I have attached my configuration for Genre.

Example.txt - https://github.com/user-attachments/files/20120970/Example.txt

I also tested this with these other genres like: Science-Fiction/Family/Horror/Comedy/War/Crime/Music/Mystery/Romance/TV Movie
And they all work 100% it appends the Danish genres to the english collection names.
Just not for "History"

Important: Running test config files on movies only in order to get smaller logfile for https://gist.github.com/

GitHub

Version Number 2.2.0 What branch are you on? master Describe the Bug Hi All So after allot of testing, I can see that the append function to default genre collection History doesn't work. I hav...

Gist

GitHub Gist: instantly share code, notes, and snippets.

strong narwhalBOT
#

Welcome @frigid ginkgo!

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.

proud crestBOT
#
Providing Log Files

1: Go to your config folder

2: Go into the logs folder

3: Look for meta.log (not meta.1.log etc)

4: Drag it in the Discord thread - the whole thing, DO NOT EDIT IT

5: Still confused? ¯_(ツ)_/¯

Log file too big? USE PASTEBIN or ZIP THE FILE

tulip mantle
#

Don't worry about generating new smaller log file. Please drag one of your original log files into this thread.

frigid ginkgo
strong narwhalBOT
#

📝 If you want to review this again, caz000:
: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: Caz
Person who Invoked the Command: Antwan
File Name: meta.zip

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 - ❌⏰ KOMETA SCHEDULED TIME CONFLICT
Page 07: Rec 02 - ⚠️ [WARNING]
Page 08: Rec 03 - 💬 CONVERT WARNING
Page 09: Rec 04 - 💬💡️ PLEX DB CACHE ADVICE

tulip mantle
#

If you ran these experiments on a small test library each iteration wouldn't take 14 hours.

#

You are telling Kometa to merge things with genre Historie into the History genre collection.

|     - default: genre
|       template_variables:
|         append_addons:
|           History:
|           - Historie

However, you don't have anything with the genre Historie; When Kometa build the list of what genres you have in your library:

| All Keys: dict_keys(['Action', 'Adult', 'Adventure', 'Animation', 'Biography', 'Children', 'Comedy', 'Documentary', 'Drama', 'Familie', 'Family', 'Fantasy', 'Film-Noir', 'Food', 'Gyser', 'Historie ', 'History', 'Indie', 'Komedie', 'Krig', 'Kriminalitet', 'Martial Arts', 'Musical', 'Musik', 'Mysterium', 'News', 'Reality', 'Romantik', 'Sci-fi', 'Science Fiction', 'Short', 'Sport', 'Suspense', 'Thriller', 'Travel', 'TV film', 'Western']) |

it finds:

'Historie ', 'History',
         ^

Note the extra space. "Historie " does not match "Historie", so no merging occurs.

We see that later when the colelction is built:

| Validating Method: smart_filter
| Value: {'sort_by': 'release.desc', 'any': {'genre': ['Historie ']}}
                                                       ^^^^^^^^^^^

And in the name of the collection:

|=============================== Running Historie  Movies Collection
                                                 ^

The summary at the end:

|            Title             |   +   |   =   |   -   | Run Time | Status
|==============================|=======|=======|=======|==========|=======
| Historie  Movies             |     0 |     0 |     0 |  0:00:05 | Unchanged
          ^
| History Movies               |     0 |     0 |     0 |  0:00:00 | Unchanged
gritty panther
#

So it seems that all Historie, are actually with the extra space. So on your add on, you could try the ’Historie ‘

tulip mantle
#

Or change them to Historie in Plex to avoid having to work around this.

gritty panther
#

Yeah. Could do that too with a metadata update

tulip mantle
#

You could do it in the UI in a couple seconds.

#

Unless this is an ongoing issue with something setting the broken genre

gritty panther
#

Yep.

tulip mantle
#

In which case you'd probably want to use genre mapping rather than a metadata file you'd have to update.
https://kometa.wiki/en/latest/config/operations/#genre-mapper

libraries:
  Movies:
    template_variables:
      use_separator: true
      sep_style: forest
    operations:
      assets_for_all: true
      genre_mapper:
        "Historie ": Historie # get rid of that stray space
frigid ginkgo
#

THANKS this was driving me nuts, and I couldnt see the space in Plex
So either Plex is having a "_" on historie when refreshing all meta data in Plex?
Or something set on all libraries (I see the same problem on TV and 4K and other libraries)

  1. Test it by changing genre on all Historie and replace it with a new one without "_"
    Then run again. If everything looks okay then select one movie and force refresh to see if it goes away from the collections?
#

Or set both of them:
libraries: Movies: template_variables: use_separator: true sep_style: forest operations: assets_for_all: true collection_files: - default: separator_award - default: oscars - default: emmy - default: golden - default: separator_chart - default: basic - default: tautulli - default: imdb - default: tmdb - default: trakt - default: other_chart - default: genre template_variables: append_addons: Family: - Familie Horror: - Gyser History: - Historie - "Historie " Comedy: - Komedie War: - Krig Crime: - Kriminalitet Music: - Musik Mystery: - Mysterium Romance: - Romantik Science Fiction: - Sci-fi TV Movie: - TV film - default: franchise - default: universe - default: based - default: actor - default: seasonal - default: decade overlay_files: - default: ribbon

tulip mantle
gritty panther
#

I would recommend just popping that genre mapper in your config for each library and leaving it, then IF plex updates or some new item gets added that space will just be removed

frigid ginkgo
#

Okay. Any input on why it keeps creating a collection named "Awards Show Shows" ? I delete it and Kometa creates it again?
I wouldnt mind if it had artwork for it like the other genre collection but it really sticks out.
(I was under the impression that every default genre enabled in Kometa would just have some default artwork, I might be wrong)
Again thanks been pulling my hair on this and never guessed on Plex having a space on a genre LOL

tulip mantle
#

Any input on why it keeps creating a collection named "Awards Show Shows"

As mentioned before, those three shows have the genre "Award Shows".

The default genre collections are named "GENRE Shows". In this case the genre is "Award Shows", so the collection is named "Award Show Shows".

Kometa's genre default creates collections for every genre defined in your library. It's not working from a predetermined list of genres to create colelctions for.

It has default art for a limited set of genres. This is not a genre that Kometa has default art for.

If you do not want this genre to get a collection, you need to:

  1. remove that genre from these shows OR
  2. tell Kometa not to create a collection for this genre
#

For example, if I give ten movies in my library these nonsense genres:

#

And then run the default genre collections:

libraries:
  Movies:
    collection_files:
    - default: genre

I get collections for those three genres:

#

I didn't tell Kometa to create those specifically, it just reads them from the library.

#

If I give ten others the "Award Shows" genre:

frigid ginkgo
#

Point taken! - But I never created these genres I think Plex gave them to all my award shows.
So that would mean that any new award show as a TV show would end up being created in Kometa right?

tulip mantle
tulip mantle
frigid ginkgo
#

True, I am just trying to find a solution that works in the future when some new award show are added to Plex.
And it adds the:

#

Maybee as you suggested tell kometa not to create "Awards Show" would make it be future proof

tulip mantle
#

Your choices are:

  1. remove that genre from these shows OR
  2. tell Kometa not to create a collection for this genre
frigid ginkgo
#

Like:
Exclude Award Show:
filters:
genre.not: Award

#

ok I will remove it easier 🙂

tulip mantle
#
    - default: genre
      template_variables:
        exclude:
          - Award Shows
          - Award
        append_addons:
          Family:
            - Familie
 ...
gritty panther
#

Or you could also run the genre mapper here as well

proud crestBOT
#

antwanchild used !aenh

@frigid ginkgo, 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.

frigid ginkgo
#

No thanks!