Kometa-Team / Kometa

Python script to update metadata information for items in plex as well as automatically build collections and playlists. The Wiki Documentation is linked below.
https://kometa.wiki
MIT License
2.46k stars 305 forks source link

tmdb_person filter does not create collection #540

Closed G4Zz0L1 closed 2 years ago

G4Zz0L1 commented 2 years ago

I've set a series of collection with tmdb_person based on your example on the config repository (https://github.com/meisnate12/Plex-Meta-Manager-Configs/blob/master/meisnate12/People.yml). It's always worked fine, but recently I've noticed that it doesn't create the new collections I'm adding. I've even tried to reset the docker config folder and delete all the collections, but everything else works. There is no error in the logs, or so it seems. I've also added the validate_buildersto false, just in case, but it does nothing new. Doing the same search in plex (excluded the director key because in this example is missing) it returns 50 entry.

Relevant Collection Config

templates:
  Person:
    sort_title: +17_<<collection_name>>
    sync_mode: sync
    tmdb_person: <<person>>
    smart_filter:
      any:
        actor: tmdb
        director: tmdb
        producer: tmdb
        writer: tmdb
      sort_by: release.desc
      validate: false
    validate_builders: false
collections:
  Adam Sandler:
    template: {name: Person, person: 19292}

Plex Meta Manager Info Version: 1.13.3

Logs (required)

[2021-12-23 14:26:37,667] [util.py:199]               [INFO]     |====================================================================================================|
[2021-12-23 14:26:37,667] [util.py:206]               [INFO]     |                                      Adam Sandler Collection                                       |
[2021-12-23 14:26:37,667] [util.py:210]               [INFO]     |====================================================================================================|
[2021-12-23 14:26:37,667] [plex_meta_manager.py:637]  [INFO]     |                                                                                                    |
[2021-12-23 14:26:37,668] [util.py:206]               [INFO]     |================================ Validating Adam Sandler Attributes ================================|
[2021-12-23 14:26:37,668] [builder.py:232]            [DEBUG]    |                                                                                                    |
[2021-12-23 14:26:37,668] [builder.py:233]            [DEBUG]    | Validating Method: template                                                                        |
[2021-12-23 14:26:37,668] [builder.py:239]            [DEBUG]    | Value: ordereddict([('name', 'Person'), ('person', 19292)])                                        |
[2021-12-23 14:26:37,668] [builder.py:459]            [DEBUG]    |                                                                                                    |
[2021-12-23 14:26:37,668] [builder.py:460]            [DEBUG]    | Validating Method: validate_builders                                                               |
[2021-12-23 14:26:37,668] [builder.py:461]            [DEBUG]    | Value: False                                                                                       |
[2021-12-23 14:26:37,668] [builder.py:480]            [DEBUG]    |                                                                                                    |
[2021-12-23 14:26:37,668] [builder.py:481]            [DEBUG]    | Validating Method: sync_mode                                                                       |
[2021-12-23 14:26:37,668] [builder.py:485]            [DEBUG]    | Value: sync                                                                                        |
[2021-12-23 14:26:37,668] [builder.py:524]            [DEBUG]    |                                                                                                    |
[2021-12-23 14:26:37,668] [builder.py:525]            [DEBUG]    | Validating Method: tmdb_person                                                                     |
[2021-12-23 14:26:37,668] [builder.py:529]            [DEBUG]    | Value: 19292                                                                                       |
[2021-12-23 14:26:37,788] [builder.py:1350]           [INFO]     |                                                                                                    |
[2021-12-23 14:26:37,788] [builder.py:1351]           [INFO]     | Validating Method: smart_filter                                                                    |
[2021-12-23 14:26:37,789] [builder.py:1357]           [DEBUG]    | Value: {'any': {'actor': 'tmdb', 'director': 'tmdb', 'producer': 'tmdb', 'writer': 'tmdb'}, 'sort_by': 'release.desc', 'validate': False} |
[2021-12-23 14:26:38,312] [builder.py:1564]           [ERROR]    | Plex Error: director: Adam Sandler not found                                                       |
[2021-12-23 14:26:38,691] [builder.py:600]            [DEBUG]    |                                                                                                    |
[2021-12-23 14:26:38,691] [builder.py:601]            [DEBUG]    | Validating Method: sort_title                                                                      |
[2021-12-23 14:26:38,691] [builder.py:602]            [DEBUG]    | Value: +17_Adam Sandler                                                                            |
[2021-12-23 14:26:38,752] [builder.py:701]            [INFO]     |                                                                                                    |
[2021-12-23 14:26:38,752] [builder.py:702]            [INFO]     | Validation Successful                                                                              |
[2021-12-23 14:26:38,753] [plex_meta_manager.py:645]  [INFO]     |                                                                                                    |
[2021-12-23 14:26:38,753] [util.py:206]               [INFO]     |================================= Running Adam Sandler Collection ==================================|
[2021-12-23 14:26:38,753] [plex_meta_manager.py:653]  [INFO]     |                                                                                                    |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     | Smart Movie Filter                                                                                 |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     | Sort By: release.desc                                                                              |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     | Validate: False                                                                                    |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     | Filter:                                                                                            |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     |   Match any of the following:                                                                      |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     |     Actor is Adam Sandler                                                                          |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     |     Producer is Adam Sandler                                                                       |
[2021-12-23 14:26:38,753] [util.py:151]               [INFO]     |     Writer is Adam Sandler                                                                         |
[2021-12-23 14:26:38,753] [plex_meta_manager.py:751]  [INFO]     |                                                                                                    |
[2021-12-23 14:26:38,754] [util.py:199]               [INFO]     |====================================================================================================|
[2021-12-23 14:26:38,754] [util.py:206]               [INFO]     |                                  Finished Adam Sandler Collection                                  |
[2021-12-23 14:26:38,754] [util.py:206]               [INFO]     |                                    Collection Run Time: 0:00:01                                    |
[2021-12-23 14:26:38,754] [util.py:210]               [INFO]     |====================================================================================================|
fisher745 commented 2 years ago

Try this, if it works https://github.com/meisnate12/Plex-Meta-Manager-Configs/blob/master/fisher745/metadata/movies/People.yml

G4Zz0L1 commented 2 years ago

Nope, same result. I use the same config, except for the sort_by and valifate_builders. I've tried even to remove everything and run only tmdb_person and smart_filter with the same result. Collections are not created and there aren't errors in the log.

meisnate12 commented 2 years ago

Can you switch to develop and try again

G4Zz0L1 commented 2 years ago

It's working with the develop docker image, but doesn't work on the latest tag.