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.38k stars 297 forks source link

Proper syntax for a collection by rating? #237

Closed bigdork closed 3 years ago

bigdork commented 3 years ago

I'm trying to create a collection based on another collection that only contains content with critic ratings of 3.5/5 or 7/10. I've tried all kinds of values 1.0-9.0 for critic_rating to no avail. What is the proper syntax for a collection by rating?

(Note: I'm using Anime for testing, since it's a small collection. I have several well-rated Anime such as Akira so something should be found)

  subgenre_rating:
    sort_title: +3 <<collection_name>>
    content_rating: Collection
    collection_order: alpha
    collection: <<col>>
    filters:
      critic_rating.gte: <<rat>>
    file_poster: config/asset/<<collection_name>>.png
    summary: "A sub-collection of the <<col>> genre collection, with only movies rated <<rat>> or higher.\n(Sorted alphabetically, refreshed daily.)"

  Anime +3.5:
    template: {name: subgenre_rating, col: Anime, rat: 7.0}
$ python3 plex_meta_manager.py -cl "Anime +3.5"
...
| Scanning Anime +3.5 Collection                                                                    |
|                                                                                                    |
| Sync Mode: sync                                                                                    |
|                                                                                                    |
| Collection Filter critic_rating.gte: 7.0                                                           |
|                                                                                                    |
| Processing Plex Search: collection(Anime)                                                          |
| 82 Movies Processed                                                                                |
|                                                                                                    |
| 0 Movie Removed
meisnate12 commented 3 years ago

Turn on show filtered are they actually being filtered out or just not being found at all?

bigdork commented 3 years ago

A bit of the output, all have X's, nothing is added.

Akira is 8/10 on IMDB... https://www.imdb.com/title/tt0094625/

| Processing Plex Search: collection(Anime)                                                          |
| Anime +3.5 Collection | X | 5 Centimeters per Second                                              |
| Anime +3.5 Collection | X | Afro Samurai: Resurrection                                            |
| Anime +3.5 Collection | X | Akira                                                                 |
| Anime +3.5 Collection | X | Altered Carbon: Resleeved                                             |
| Anime +3.5 Collection | X | Appleseed                                                             |
| Anime +3.5 Collection | X | Appleseed: Ex Machina
...
| 82 Movies Processed                                                                                |
|                                                                                                    |
| 0 Movie Removed                                                                                    |
|                                                                                                    |
meisnate12 commented 3 years ago

im looking into this in the meantime im curious why you have content_rating: Collection

meisnate12 commented 3 years ago

also can you post the output from your meta.log file for the whol collection you can remove the repeated processed lines

meisnate12 commented 3 years ago

so its working for me which will make it harder to figure out whats going on. Are you using any smart collections?

bigdork commented 3 years ago

Only smart collections are new releases for TV/Movies, not this Anime one though. Cropped log below, the debug line indicating the collection is not found seems concerning...

[2021-05-10 17:22:18,994] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-10 17:22:18,994] [util.py:360]               [INFO]     |                                       Anime +3.5 Collection                                        |
[2021-05-10 17:22:18,994] [util.py:361]               [INFO]     |====================================================================================================|
[2021-05-10 17:22:18,994] [config.py:507]             [INFO]     |                                                                                                    |
[2021-05-10 17:22:18,994] [builder.py:342]            [INFO]     | Scanning Anime +3.5 Collection                                                                     |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: template                                                                        |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: ordereddict([('name', 'subgenre_rating'), ('col', 'Anime'), ('rat', 7.0)])                  |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: show_filtered                                                                   |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: True                                                                                        |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: sort_title                                                                      |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: +3 Anime +3.5                                                                               |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: content_rating                                                                  |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: Collection                                                                                  |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: collection_order                                                                |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: alpha                                                                                       |
[2021-05-10 17:22:18,995] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:18,995] [builder.py:371]            [DEBUG]    | Validating Method: collection                                                                      |
[2021-05-10 17:22:18,995] [builder.py:372]            [DEBUG]    | Value: Anime                                                                                       |
[2021-05-10 17:22:19,648] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:19,648] [builder.py:371]            [DEBUG]    | Validating Method: filters                                                                         |
[2021-05-10 17:22:19,648] [builder.py:372]            [DEBUG]    | Value: {'critic_rating.gte': 7.0}                                                                  |
[2021-05-10 17:22:19,648] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:19,648] [builder.py:371]            [DEBUG]    | Validating Method: file_poster                                                                     |
[2021-05-10 17:22:19,648] [builder.py:372]            [DEBUG]    | Value: config/asset/Anime +3.5.png                                                                 |
[2021-05-10 17:22:20,703] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:20,703] [builder.py:371]            [DEBUG]    | Validating Method: summary                                                                         |
[2021-05-10 17:22:20,703] [builder.py:372]            [DEBUG]    | Value: A sub-collection of the Anime genre collection, with only movies rated 7.0 or higher.
(Sorted alphabetically, refreshed daily.) |
[2021-05-10 17:22:20,729] [config.py:530]             [INFO]     |                                                                                                    |
[2021-05-10 17:22:20,729] [config.py:532]             [INFO]     | Sync Mode: sync                                                                                    |
[2021-05-10 17:22:20,729] [config.py:541]             [INFO]     |                                                                                                    |
[2021-05-10 17:22:20,729] [config.py:542]             [INFO]     | Collection Filter critic_rating.gte: 7.0                                                           |
[2021-05-10 17:22:20,730] [builder.py:998]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:22:20,730] [builder.py:999]            [DEBUG]    | Method: plex_search                                                                                |
[2021-05-10 17:22:20,730] [builder.py:1000]           [DEBUG]    | Values: [{'collection': ['Anime']}]                                                                |
[2021-05-10 17:22:20,730] [builder.py:1023]           [INFO]     |                                                                                                    |
[2021-05-10 17:22:20,730] [builder.py:1024]           [DEBUG]    | Value: {'collection': ['Anime']}                                                                   |
[2021-05-10 17:22:20,730] [plex.py:272]               [DEBUG]    | Data: {'collection': ['Anime']}                                                                    |
[2021-05-10 17:22:20,730] [plex.py:328]               [INFO]     | Processing Plex Search: collection(Anime)                                                          |
[2021-05-10 17:22:20,730] [plex.py:335]               [DEBUG]    | Search: {'collection': ['Anime']}                                                                  |
[2021-05-10 17:22:22,110] [plex.py:490]               [INFO]     | Anime +3.5 Collection | X | 5 Centimeters per Second                                               |
[2021-05-10 17:22:22,971] [plex.py:490]               [INFO]     | Anime +3.5 Collection | X | Afro Samurai: Resurrection                                             |
[2021-05-10 17:22:23,429] [plex.py:490]               [INFO]     | Anime +3.5 Collection | X | Akira                                                                  |
...
[2021-05-10 17:23:39,583] [plex.py:490]               [INFO]     | Anime +3.5 Collection | X | WXIII: Patlabor The Movie 3                                            |
[2021-05-10 17:23:39,583] [util.py:370]               [INFO]     | 82 Movies Processed                                                                                |
[2021-05-10 17:23:39,583] [builder.py:1116]           [INFO]     |                                                                                                    |
[2021-05-10 17:23:39,583] [builder.py:1123]           [INFO]     | 0 Movie Removed                                                                                    |
[2021-05-10 17:23:39,583] [builder.py:1124]           [INFO]     |                                                                                                    |
[2021-05-10 17:23:39,610] [config.py:549]             [DEBUG]    | Plex Error: Collection Anime +3.5 not found                                                        |
[2021-05-10 17:23:39,610] [plex_meta_manager.py:115]  [INFO]     |                                                                                                    |
[2021-05-10 17:23:39,610] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-10 17:23:39,610] [util.py:360]               [INFO]     |                                      Finished Collections Run                                      |
[2021-05-10 17:23:39,610] [util.py:360]               [INFO]     |                                         Run Time: 0:05:25                                          |
[2021-05-10 17:23:39,610] [util.py:361]               [INFO]     |====================================================================================================|
bigdork commented 3 years ago

So I created a collection manually "Anime +3.5" and added Akira to it, re-ran and the meta.log shows this at the end? I must be doing something wrong?

[2021-05-10 17:34:31,465] [plex.py:490]               [INFO]     | Anime +3.5 Collection | X | WXIII: Patlabor The Movie 3                                            |
[2021-05-10 17:34:31,465] [util.py:370]               [INFO]     | 82 Movies Processed                                                                                |
[2021-05-10 17:34:31,465] [builder.py:1116]           [INFO]     |                                                                                                    |
[2021-05-10 17:34:31,465] [builder.py:1120]           [INFO]     | Anime +3.5 Collection | - | Akira                                                                  |
[2021-05-10 17:34:32,324] [builder.py:1123]           [INFO]     | 1 Movies Removed                                                                                   |
[2021-05-10 17:34:32,324] [builder.py:1124]           [INFO]     |                                                                                                    |
[2021-05-10 17:34:32,353] [config.py:549]             [DEBUG]    | Plex Error: Collection Anime +3.5 not found                                                        |
[2021-05-10 17:34:32,353] [plex_meta_manager.py:115]  [INFO]     |                                                                                                    |
[2021-05-10 17:34:32,353] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-10 17:34:32,354] [util.py:360]               [INFO]     |                                      Finished Collections Run                                      |
[2021-05-10 17:34:32,354] [util.py:360]               [INFO]     |                                         Run Time: 0:04:13                                          |
[2021-05-10 17:34:32,354] [util.py:361]               [INFO]     |====================================================================================================|
bigdork commented 3 years ago

Side note: Is a filter the way to go for this kind of thing? My hope was to do the "heavy lifting" once into (in this case, Genre) collections, then quickly break out a sub-collection of good movies, or those from the 90s, etc. It takes a little bit to run through just 82 movies, I'd be concerned to run this against a collection with hundreds/thousands of movies in it...

bigdork commented 3 years ago

FYI, I changed the collection name to "Anime Well Rated" thinking maybe the "+" or "." were causing issues, ran it, no change. shrug

[2021-05-10 17:50:56,946] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-10 17:50:56,946] [util.py:360]               [INFO]     |                                    Anime Well Rated Collection                                     |
[2021-05-10 17:50:56,946] [util.py:361]               [INFO]     |====================================================================================================|
[2021-05-10 17:50:56,946] [config.py:507]             [INFO]     |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:342]            [INFO]     | Scanning Anime Well Rated Collection                                                               |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: template                                                                        |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: ordereddict([('name', 'subgenre_rating'), ('col', 'Anime'), ('rat', 7.0)])                  |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: show_filtered                                                                   |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: True                                                                                        |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: sort_title                                                                      |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: +3 Anime Well Rated                                                                         |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: content_rating                                                                  |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: Collection                                                                                  |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: collection_order                                                                |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: alpha                                                                                       |
[2021-05-10 17:50:56,946] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:56,946] [builder.py:371]            [DEBUG]    | Validating Method: collection                                                                      |
[2021-05-10 17:50:56,946] [builder.py:372]            [DEBUG]    | Value: Anime                                                                                       |
[2021-05-10 17:50:57,583] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:57,583] [builder.py:371]            [DEBUG]    | Validating Method: filters                                                                         |
[2021-05-10 17:50:57,583] [builder.py:372]            [DEBUG]    | Value: {'critic_rating.gte': 7.0}                                                                  |
[2021-05-10 17:50:57,584] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:57,584] [builder.py:371]            [DEBUG]    | Validating Method: file_poster                                                                     |
[2021-05-10 17:50:57,584] [builder.py:372]            [DEBUG]    | Value: config/asset/Anime Well Rated.png                                                           |
[2021-05-10 17:50:58,647] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:58,647] [builder.py:371]            [DEBUG]    | Validating Method: summary                                                                         |
[2021-05-10 17:50:58,647] [builder.py:372]            [DEBUG]    | Value: A sub-collection of the Anime genre collection, with only movies rated 7.0 or higher.
(Sorted alphabetically, refreshed daily.) |
[2021-05-10 17:50:58,672] [config.py:530]             [INFO]     |                                                                                                    |
[2021-05-10 17:50:58,672] [config.py:532]             [INFO]     | Sync Mode: sync                                                                                    |
[2021-05-10 17:50:58,672] [config.py:541]             [INFO]     |                                                                                                    |
[2021-05-10 17:50:58,672] [config.py:542]             [INFO]     | Collection Filter critic_rating.gte: 7.0                                                           |
[2021-05-10 17:50:58,672] [builder.py:998]            [DEBUG]    |                                                                                                    |
[2021-05-10 17:50:58,672] [builder.py:999]            [DEBUG]    | Method: plex_search                                                                                |
[2021-05-10 17:50:58,672] [builder.py:1000]           [DEBUG]    | Values: [{'collection': ['Anime']}]                                                                |
[2021-05-10 17:50:58,672] [builder.py:1023]           [INFO]     |                                                                                                    |
[2021-05-10 17:50:58,672] [builder.py:1024]           [DEBUG]    | Value: {'collection': ['Anime']}                                                                   |
[2021-05-10 17:50:58,672] [plex.py:272]               [DEBUG]    | Data: {'collection': ['Anime']}                                                                    |
[2021-05-10 17:50:58,672] [plex.py:328]               [INFO]     | Processing Plex Search: collection(Anime)                                                          |
[2021-05-10 17:50:58,672] [plex.py:335]               [DEBUG]    | Search: {'collection': ['Anime']}                                                                  |
[2021-05-10 17:50:59,671] [plex.py:490]               [INFO]     | Anime Well Rated Collection | X | 5 Centimeters per Second
...

[2021-05-10 17:51:53,910] [plex.py:490]               [INFO]     | Anime Well Rated Collection | X | WXIII: Patlabor The Movie 3                                      |
[2021-05-10 17:51:53,910] [util.py:370]               [INFO]     | 82 Movies Processed                                                                                |
[2021-05-10 17:51:53,910] [builder.py:1116]           [INFO]     |                                                                                                    |
[2021-05-10 17:51:53,910] [builder.py:1123]           [INFO]     | 0 Movie Removed                                                                                    |
[2021-05-10 17:51:53,910] [builder.py:1124]           [INFO]     |                                                                                                    |
[2021-05-10 17:51:53,935] [config.py:549]             [DEBUG]    | Plex Error: Collection Anime Well Rated not found                                                  |
[2021-05-10 17:51:53,935] [plex_meta_manager.py:115]  [INFO]     |                                                                                                    |
[2021-05-10 17:51:53,935] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-10 17:51:53,935] [util.py:360]               [INFO]     |                                      Finished Collections Run                                      |
[2021-05-10 17:51:53,935] [util.py:360]               [INFO]     |                                         Run Time: 0:03:52                                          |
[2021-05-10 17:51:53,935] [util.py:361]               [INFO]     |====================================================================================================|
bigdork commented 3 years ago

im looking into this in the meantime im curious why you have content_rating: Collection

I couldn't find a way to force a "blank" content_rating on the collection? I'd rather do that, but really I wouldn't expect this to affect the problem I'm having, all my other collections created fine with it.

meisnate12 commented 3 years ago

content_rating: Collection shouldnt be a problem.

the Plex Error: Collection Anime Well Rated not found is happening because there isnt a collection since no items were added to the collection or in the last case there are no longer items in the collection.

i was asking about smart collections because if the original Anime Collection was a smart collection then this would not work because plex doesnt see the items in a smart collection the same way as normal collections

I wouldnt use filters personally. I would use smart collections to do what your looking for. plex_search might also work like this

  subgenre_rating:
    sort_title: +3 <<collection_name>>
    content_rating: Collection
    collection_order: alpha
    plex_search:
      collection: <<col>>
      critic_rating.greater: <<rat>>
    file_poster: config/asset/<<collection_name>>.png
    summary: "A sub-collection of the <<col>> genre collection, with only movies rated <<rat>> or higher.\n(Sorted alphabetically, refreshed daily.)"

  Anime +3.5:
    template: {name: subgenre_rating, col: Anime, rat: 6.99}

but i really think that smart collections will be the way to go although you cant do critic_rating <= 7 with them but what you can do is limit it to say 10 or 20 items and sort by critic rating to get a top 10/20 Anime movies

if you switch to the develop branch you can create a smart collection using PMM that will filter with critic_rating <= 7 something you cant even do with the UI lol if you want i can walk you though how since i havent written the readme for that part yet

bigdork commented 3 years ago

Made the template change you suggested using plex search, but still no-go. If you're going to add smart collection support, I'll just wait on this. No stress. Will PMM allow smart collections based on other smart collections? PMS doesn't allow that currently.

[2021-05-11 08:28:12,269] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-11 08:28:12,269] [util.py:360]               [INFO]     |                                    Anime Well Rated Collection                                     |
[2021-05-11 08:28:12,269] [util.py:361]               [INFO]     |====================================================================================================|
[2021-05-11 08:28:12,269] [config.py:507]             [INFO]     |                                                                                                    |
[2021-05-11 08:28:12,269] [builder.py:342]            [INFO]     | Scanning Anime Well Rated Collection                                                               |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: template                                                                        |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: ordereddict([('name', 'subgenre_rating'), ('col', 'Anime'), ('rat', 3.49)])                 |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: show_filtered                                                                   |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: True                                                                                        |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: sort_title                                                                      |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: +3 Anime Well Rated                                                                         |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: content_rating                                                                  |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: Collection                                                                                  |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: collection_order                                                                |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: alpha                                                                                       |
[2021-05-11 08:28:12,270] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:12,270] [builder.py:371]            [DEBUG]    | Validating Method: plex_search                                                                     |
[2021-05-11 08:28:12,270] [builder.py:372]            [DEBUG]    | Value: {'collection': 'Anime', 'critic_rating.greater': 3.49}                                      |
[2021-05-11 08:28:13,046] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:13,046] [builder.py:371]            [DEBUG]    | Validating Method: file_poster                                                                     |
[2021-05-11 08:28:13,046] [builder.py:372]            [DEBUG]    | Value: config/asset/Anime Well Rated.png                                                           |
[2021-05-11 08:28:13,047] [builder.py:370]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:13,047] [builder.py:371]            [DEBUG]    | Validating Method: summary                                                                         |
[2021-05-11 08:28:13,047] [builder.py:372]            [DEBUG]    | Value: A sub-collection of the Anime genre collection, with only movies rated 3.49 or higher.
(Sorted alphabetically, refreshed daily.) |
[2021-05-11 08:28:13,105] [config.py:530]             [INFO]     |                                                                                                    |
[2021-05-11 08:28:13,105] [config.py:532]             [INFO]     | Sync Mode: sync                                                                                    |
[2021-05-11 08:28:13,105] [builder.py:998]            [DEBUG]    |                                                                                                    |
[2021-05-11 08:28:13,105] [builder.py:999]            [DEBUG]    | Method: plex_search                                                                                |
[2021-05-11 08:28:13,105] [builder.py:1000]           [DEBUG]    | Values: [{'collection': ['Anime'], 'critic_rating.greater': 3.49}]                                 |
[2021-05-11 08:28:13,105] [builder.py:1023]           [INFO]     |                                                                                                    |
[2021-05-11 08:28:13,105] [builder.py:1024]           [DEBUG]    | Value: {'collection': ['Anime'], 'critic_rating.greater': 3.49}                                    |
[2021-05-11 08:28:13,105] [plex.py:272]               [DEBUG]    | Data: {'collection': ['Anime'], 'critic_rating.greater': 3.49}                                     |
[2021-05-11 08:28:13,105] [plex.py:328]               [INFO]     | Processing Plex Search: collection(Anime)                                                          |
[2021-05-11 08:28:13,105] [plex.py:326]               [INFO]     |            AND critic_rating.greater(3.49)                                                            |
[2021-05-11 08:28:13,105] [plex.py:335]               [DEBUG]    | Search: {'collection': ['Anime'], 'rating__gte': 3.49}                                             |
[2021-05-11 08:28:13,713] [builder.py:1042]           [ERROR]    | No items found to add to this collection                                                           |
[2021-05-11 08:28:13,713] [builder.py:1124]           [INFO]     |                                                                                                    |
[2021-05-11 08:28:13,750] [config.py:549]             [DEBUG]    | Plex Error: Collection Anime Well Rated not found                                                  |
[2021-05-11 08:28:13,750] [plex_meta_manager.py:115]  [INFO]     |                                                                                                    |
[2021-05-11 08:28:13,750] [util.py:356]               [INFO]     |====================================================================================================|
[2021-05-11 08:28:13,750] [util.py:360]               [INFO]     |                                      Finished Collections Run                                      |
[2021-05-11 08:28:13,750] [util.py:360]               [INFO]     |                                         Run Time: 0:03:59                                          |
[2021-05-11 08:28:13,750] [util.py:361]               [INFO]     |====================================================================================================|
meisnate12 commented 3 years ago

the smart collection update is already live in develop! So another question are you sure the anime has a critic rating at all it could just have an audience rating? Also no i dont think you can create a smart collection from another collection but what you can do is have the same conditions as the other collection with one or two additional ones to slim down whats added

bigdork commented 3 years ago

Where can I verify critic rating vs audience rating?

meisnate12 commented 3 years ago

go to your anime collection and sort by critic rating and see what comes up

meisnate12 commented 3 years ago

ok my bad you can sort a collection

meisnate12 commented 3 years ago

go to advance filters and filter on your anime collection and then sort by critic rating

bigdork commented 3 years ago

Doesn't seem to want to sort, but there are definitely some that should fit the criteria. shrug Screen Shot 2021-05-11 at 8 58 08 AM

meisnate12 commented 3 years ago

i like your posters lol can you view the xml of lets say akira and post it?

bigdork commented 3 years ago
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="7" librarySectionTitle="Movies" librarySectionUUID="46d2d46b-79ef-4fd7-a0d8-f0faa63b7bdb" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1620311816">
<Video ratingKey="139972" key="/library/metadata/139972" guid="plex://movie/5d77682454c0f0001f301a42" studio="Akira Committee Company Ltd." type="movie" title="Akira" librarySectionTitle="Movies" librarySectionID="7" librarySectionKey="/library/sections/7" originalTitle="アキラ" contentRating="R" summary="A secret military project endangers Neo-Tokyo when it turns a biker gang member into a rampaging psychic psychopath that only two teenagers and a group of psychics can stop." audienceRating="8.0" viewCount="1" lastViewedAt="1483747088" year="1988" tagline="Neo-Tokyo is about to E.X.P.L.O.D.E." thumb="/library/metadata/139972/thumb/1608782450" art="/library/metadata/139972/art/1608782450" duration="7477095" originallyAvailableAt="1988-07-16" addedAt="1574813169" updatedAt="1608782450" audienceRatingImage="imdb://image.rating" primaryExtraKey="/library/metadata/552605">
<Media id="158723" duration="7477095" bitrate="2321" width="1920" height="1024" aspectRatio="1.85" audioChannels="2" audioCodec="aac" videoCodec="h264" videoResolution="1080" container="mp4" videoFrameRate="24p" optimizedForStreaming="1" audioProfile="lc" has64bitOffsets="0" videoProfile="high">
<Part accessible="1" exists="1" id="159549" key="/library/parts/159549/1568618816/file.mp4" duration="7477095" file="/mnt/unionfs/media/movies/Akira(1988)/Akira(1988).mp4" size="2169389830" audioProfile="lc" container="mp4" has64bitOffsets="0" optimizedForStreaming="1" videoProfile="high">
<Stream id="426311" streamType="1" default="1" codec="h264" index="0" bitrate="2148" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="23.976" hasScalingMatrix="0" height="1024" level="41" profile="high" refFrames="4" streamIdentifier="1" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="426312" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" bitrate="173" audioChannelLayout="stereo" profile="lc" samplingRate="96000" streamIdentifier="2" displayTitle="Unknown (AAC Stereo)" extendedDisplayTitle="Unknown (AAC Stereo)"> </Stream>
</Part>
</Media>
<Genre id="138" filter="genre=138" tag="Animation"/>
<Genre id="72006" filter="genre=72006" tag="Anime"/>
<Genre id="140" filter="genre=140" tag="Drama"/>
<Genre id="3165" filter="genre=3165" tag="Sci-Fi"/>
<Genre id="408" filter="genre=408" tag="Thriller"/>
<Director id="177752" filter="director=177752" tag="Katsuhiro Otomo"/>
<Director id="386754" filter="director=386754" tag="Takashi Nakamura"/>
<Writer id="14199" filter="writer=14199" tag="Katsuhiro Otomo"/>
<Writer id="14198" filter="writer=14198" tag="Izo Hashimoto"/>
<Producer id="14208" filter="producer=14208" tag="Haruyo Kanesaku"/>
<Producer id="14211" filter="producer=14211" tag="Shunzo Kato"/>
<Producer id="14213" filter="producer=14213" tag="Yutaka Maseba"/>
<Producer id="14209" filter="producer=14209" tag="Hiroe Tsukamoto"/>
<Producer id="14212" filter="producer=14212" tag="Yoshimasa Mizuo"/>
<Producer id="14210" filter="producer=14210" tag="Ryôhei Suzuki"/>
<Country id="4246" filter="country=4246" tag="Japan"/>
<Guid id="imdb://tt0094625"/>
<Guid id="tmdb://149"/>
<Guid id="tvdb://1332"/>
<Collection id="255581" filter="collection=255581" tag="Anime"/>
<Collection id="273481" filter="collection=273481" tag="1980s"/>
<Collection id="1138197" filter="collection=1138197" tag="Anime Vintage"/>
<Role id="1628" filter="actor=1628" tag="Mitsuo Iwata" role="Shôtarô Kaneda (voice)" thumb="https://metadata-static.plex.tv/8/people/896c80049e68eaf82a71012121dab505.jpg"/>
<Role id="14204" filter="actor=14204" tag="Nozomu Sasaki" role="Tetsuo Shima (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b6f.jpg"/>
<Role id="1357" filter="actor=1357" tag="Mami Koyama" role="Kei (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b70.jpg"/>
<Role id="798" filter="actor=798" tag="Tesshou Genda" role="Ryûsaku (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b7c.jpg"/>
<Role id="386755" filter="actor=386755" tag="Hiroshi Ohtake" role="Nezu (voice)" thumb="https://metadata-static.plex.tv/2/people/228cbea75a2af22783817c334199cfda.jpg"/>
<Role id="386756" filter="actor=386756" tag="Kōichi Kitamura" role="Priestess Miyako, Council A (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b73.jpg"/>
<Role id="14207" filter="actor=14207" tag="Yuriko Fuchizaki" role="Kaori (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b74.jpg"/>
<Role id="386757" filter="actor=386757" tag="Masaaki Ōkura" role="Yamagata (voice)" thumb="https://metadata-static.plex.tv/people/5d77682654c0f0001f301b75.jpg"/>
<Role id="72029" filter="actor=72029" tag="Takeshi Kusao" role="Kai (voice)" thumb="https://artworks.thetvdb.com/banners/person/293320/5e8b100d5add3.jpg"/>
<Role id="539382" filter="actor=539382" tag="Kazuhiro Kamifuji" role="Masaru (No. 27) (voice)"/>
<Role id="539383" filter="actor=539383" tag="Tatsuhiko Nakamura" role="Takashi (No. 26) (voice)"/>
<Role id="539384" filter="actor=539384" tag="Fukue Itô" role="Kiyoko (No. 25) (voice)"/>
<Role id="539385" filter="actor=539385" tag="Yuka Ôno" role=""/>
<Review id="85128" filter="art=85128" tag="Matt Patches" text="I've seen the movie four times, and this go-around my jaw was lower on the floor than ever before, somehow." image="rottentomatoes://image.review.fresh" link="https://www.polygon.com/2020/8/3/21352801/great-movies-netflix-hulu-hbo-amazon-akira-sunset-boulevard-douglas-first-cow" source="Polygon"/>
<Review id="4468" filter="art=4468" tag="David Jenkins" text="While its typically convoluted sci-fi plotting and sprawling ensemble of characters occasionally lead it to border on the incoherent, it's hard not to be in awe of the giant hand-drawn cityscapes that make up the backdrop for the eye-popping action." image="rottentomatoes://image.review.fresh" link="http://www.littlewhitelies.co.uk/theatrical-reviews/akira-24351" source="Little White Lies"/>
<Review id="10888" filter="art=10888" tag="Phelim O'Neill" text="Style and substance run neck and neck in this thrilling, bold landmark film that just refuses to become dated." image="rottentomatoes://image.review.fresh" link="http://www.guardian.co.uk/film/2011/jun/23/akira-film-review" source="Guardian"/>
<Review id="3296" filter="art=3296" tag="Janet Maslin" text="A phenomenal work of animation with all the hallmarks of an instant cult classic." image="rottentomatoes://image.review.fresh" source="New York Times"/>
<Review id="17505" filter="art=17505" tag="Michael Atkinson" text="Easily the most breathtaking and kinetic anime ever made." image="rottentomatoes://image.review.fresh" source="Village Voice"/>
<Review id="4443" filter="art=4443" tag="Variety Staff" text="A lavish animation extravaganza produced at a cost of $8 million, this futuristic exploration is a followup by author-director Katsuhiro Otomo to his tremendously popular comic books." image="rottentomatoes://image.review.fresh" link="http://www.variety.com/review/VE1117796717.html?categoryid=31&cs=1" source="Variety"/>
<Review id="5934" filter="art=5934" tag="Derek Malcolm" text="Put it up there with the most astonishing animated features ever made." image="rottentomatoes://image.review.fresh" source="London Evening Standard"/>
<Review id="4439" filter="art=4439" tag="Jay Cocks" text="The movie, even at 124 minutes, has the densely packed sweep and go-for-it pep of a pop epic." image="rottentomatoes://image.review.fresh" link="http://www.time.com/time/magazine/article/0,9171,977583,00.html" source="TIME Magazine"/>
<Review id="9948" filter="art=9948" tag="Geoff Andrew" text="An impressive achievement, often suggesting a weird expressionist blend of 2001, The Warriors, Blade Runner and Forbidden Planet." image="rottentomatoes://image.review.fresh" link="http://www.timeout.com/film/reviews/77646/akira.html" source="Time Out"/>
<Review id="3295" filter="art=3295" tag="Dave Kehr" text="Pounding away, it becomes monotonous." image="rottentomatoes://image.review.rotten" link="http://articles.chicagotribune.com/1990-03-30/entertainment/9001260575_1_katsuhiro-otomo-japanese-akira" source="Chicago Tribune"/>
<Review id="3216" filter="art=3216" tag="Jonathan Rosenbaum" text="Grade-school violence freaks may find a few kicks here, but even they may have trouble coping with this ugly movie's ending about eight separate times." image="rottentomatoes://image.review.rotten" link="http://onfilm.chicagoreader.com/movies/capsules/155_AKIRA" source="Chicago Reader"/>
<Review id="4057" filter="art=4057" tag="Tim Brayton" text="Handsome and preposterously ambitious, and even its worst narrative missteps are a factor of that ambition." image="rottentomatoes://image.review.fresh" link="http://antagonie.blogspot.com/2015/07/the-future-of-animation.html" source="Antagony & Ecstasy"/>
<Review id="52976" filter="art=52976" tag="Julio Vélez" text="It continues to show the best of the genre, almost 30 years later. It would be sacrilegious to give a different rating from PERFECT to AKIRA. [Full review in Spanish]" image="rottentomatoes://image.review.fresh" link="http://www.cinepremiere.com.mx/akira-netflix-review-64305.html" source="Cine Premiere"/>
<Review id="2929" filter="art=2929" tag="Rachel Wagner" text="It's dark and violent but, because it is so creative, it is a really fun experience. It's like Inception but way more trippy!" image="rottentomatoes://image.review.fresh" link="https://www.rotoscopers.com/2018/02/12/indiemation-club-w2-akira-review/" source="Rotoscopers"/>
<Review id="4229" filter="art=4229" tag="Richard Harrington" text="The most expensive animated feature ever made in Japan... and it's easily the most impressive, as well." image="rottentomatoes://image.review.fresh" link="http://www.washingtonpost.com/wp-srv/style/longterm/movies/videos/akira.htm" source="Washington Post"/>
<Review id="4230" filter="art=4230" tag="Stephen Hunter" text="[Akira] is a blast and a half, a twisted dystopian parable of violence and rock and roll, Japanese-style. It's Disney on PCP, mean, rotten, psychotic, but incredibly vivid." image="rottentomatoes://image.review.fresh" link="http://articles.baltimoresun.com/1990-09-13/features/1990256006_1_akira-otomo-neo-tokyo" source="Baltimore Sun"/>
<Review id="2886" filter="art=2886" tag="Peter Bradshaw" text="Akira's strangeness is very startling and sometimes bewildering. But there is a thanatonic rapture to its vision of a whole world ending and being reborn as something else." image="rottentomatoes://image.review.fresh" link="https://www.theguardian.com/film/2020/oct/06/akira-review-1988-japanese-anime-rerelease-katsuhiro-otomo" source="Guardian"/>
<Review id="9591" filter="art=9591" tag="Marjorie Baumgarten" text="Set the modern standard of excellence for Japanese anime despite the movie's emphasis on blood and violence." image="rottentomatoes://image.review.fresh" link="http://www.austinchronicle.com/gbase/Calendar/Film?Film=oid%3a141247" source="Austin Chronicle"/>
<Review id="15982" filter="art=15982" tag="Kim Newman" text="Simply put, no Akira, no Matrix. It's that important." image="rottentomatoes://image.review.fresh" link="http://www.empireonline.com/reviews/review.asp?DVDID=7729" source="Empire Magazine"/>
<Review id="3600" filter="art=3600" tag="Nick Schager" text="A furious spectacle of lush colors and dynamic movement." image="rottentomatoes://image.review.fresh" link="http://www.nickschager.com/nsfp/2005/03/akira_1998_b.html" source="Lessons of Darkness"/>
<Field locked="1" name="genre"/>
<Field locked="1" name="collection"/>
<Preferences>
<Setting id="languageOverride" label="Metadata language" summary="Language to use for item metadata such as synopsis and title." type="text" default="" value="" hidden="0" advanced="0" group="" enumValues=":Library default|ar-SA:العربية|ca-ES:Català|cs-CZ:Česky|da-DK:Dansk|de-DE:Deutsch|el-GR:Ελληνικά|en-AU:English (Australia)|en-CA:English (Canada)|en-GB:English (United Kingdom)|en-US:English (United States)|es-ES:Español|es-MX:Español Mexicano|et-EE:Eesti Keele|fa-IR:فارسی|fi-FI:Suomi|fr-CA:Français Canadien|fr-FR:Français|he-IL:עברית|hi-IN:हिन्दी, हिंदी|hu-HU:Magyar|id-ID:Bahasa Indonesia|it-IT:Italiano|ja-JP:日本語|ko-KR:한국어|lt-LT:Lietuvių kalba|lv-LV:Latviešu valoda|nb-NO:Norsk bokmål|nl-NL:Nederlands|pl-PL:Polski|pt-BR:Português Brasileiro|pt-PT:Português|ro-RO:Română|ru-RU:русский язык|sk-SK:Slovenčina|sv-SE:Svenska|th-TH:ไทย|tr-TR:Türkçe|uk-UA:українська|vi-VN:Tiếng Việt|zh-CN:中文|zh-HK:香港|zh-TW:正體中文"/>
<Setting id="useOriginalTitle" label="Use original title" summary="Use the original title for this item regardless of the library language." type="int" default="-1" value="-1" hidden="0" advanced="0" group="" enumValues="-1:Library default|0:No|1:Yes"/>
</Preferences>
<Extras size="1">
<Video ratingKey="552605" key="/library/metadata/552605" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(4020)" type="clip" title="Akira" summary="" index="1" thumb="/library/metadata/552605/thumb/1596057497" subtype="trailer" duration="44000" addedAt="1596057497" extraType="1">
<Media id="603785" duration="44000" bitrate="450" width="320" height="240" aspectRatio="1.33" audioCodec="aac" videoCodec="h264" videoResolution="sd" container="mp4" optimizedForStreaming="1" protocol="mp4" premium="1">
<Part id="619305" duration="44000" container="mp4" key="/services/iva/assets/4020/video.mp4?fmt=4&bitrate=450">
<Stream id="1704450" streamType="1" codec="h264" index="0" bitrate="450" height="240" width="320" displayTitle="SD (H.264)" extendedDisplayTitle="SD (H.264)"> </Stream>
<Stream id="1704451" streamType="2" selected="1" codec="aac" index="1" channels="2" displayTitle="Unknown (AAC Stereo)" extendedDisplayTitle="Unknown (AAC Stereo)"> </Stream>
</Part>
</Media>
</Video>
</Extras>
<Related>
<Hub hubKey="/library/metadata/448114" key="/library/sections/7/all?type=1&collection=255581&sort=titleSort" title="Anime Collection" type="movie" hubIdentifier="collection.related.7.1" context="hub.collection.related" size="1" more="1" style="shelf">
<Video ratingKey="448114" key="/library/metadata/448114" guid="plex://movie/5d77686c103a2d001f571373" studio="CoMix Wave Films" type="movie" title="5 Centimeters per Second" originalTitle="秒速5センチメートル" contentRating="TV-PG" summary="Three moments in Takaki's life: his relationship with Akari and their forced separation; his friendship with Kanae, who is secretly in love with him; the demands and disappointments of adulthood, an unhappy life in a cold city." audienceRating="7.6" year="2007" tagline="At what speed must I live to see you again?" thumb="/library/metadata/448114/thumb/1608770696" art="/library/metadata/448114/art/1608770696" duration="3765762" originallyAvailableAt="2007-03-03" addedAt="1586443560" updatedAt="1608770696" audienceRatingImage="imdb://image.rating" chapterSource="media">
<Media id="490392" duration="3765762" bitrate="12463" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="flac" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part id="505199" key="/library/parts/505199/1594474882/file.mkv" duration="3765762" file="/mnt/unionfs/media/movies/5.Centimeters.per.Second(2007)/5.Centimeters.per.Second(2007).mkv" size="5866790170" container="mkv" videoProfile="high"/>
</Media>
<Genre tag="Animation"/>
<Genre tag="Anime"/>
<Director tag="Makoto Shinkai"/>
<Writer tag="Makoto Shinkai"/>
<Country tag="Japan"/>
<Collection tag="Anime"/>
<Collection tag="2000s"/>
<Role tag="Kenji Mizuhashi"/>
<Role tag="Yoshimi Kondou"/>
<Role tag="Satomi Hanamura"/>
</Video>
</Hub>
</Related>
</Video>
</MediaContainer>
bigdork commented 3 years ago

... I see audience rating in there but not critic rating... :/

meisnate12 commented 3 years ago

So that doesn't have a critic rating lol it only has an audience rating from IMDb I have no idea why it's showing up to you as critic rating

meisnate12 commented 3 years ago

Just change critic_rating to audience_rating in any of the above ways and it should work

bigdork commented 3 years ago

Trying this now, takes a few minutes mapping +30K movies... Do you think I'll find this most commonly? Is audience_rating more prolific than critic_rating? Maybe I should build an "or" into my template...

bigdork commented 3 years ago

So that worked! Got some tinkering to do but I'll move forward with audience_rating. Thank you!

meisnate12 commented 3 years ago

i would be willing to bet that most of your ratings are audience ratings PMM has a mass_rating_update in develop that can make sure all your ratings are there and from the spcific source you want