question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proper syntax for a collection by rating?

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
meisnate12commented, May 11, 2021

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

1reaction
meisnate12commented, May 11, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collection Interface in Java with Examples - GeeksforGeeks
Methods of Collection ; containsAll​(Collection<?> c), Returns true if this collection contains all the elements in the specified collection.
Read more >
Java Collections Framework | Collections in Java With Examples
This blog on Java Collections introduce you to the collection framework, it's hierarchy, interface, list, queue and sets with examples.
Read more >
Collections In Java and How to Implement Them? - Simplilearn
Java Collections Interface Methods ; isEmpty(). Returns true if collection is empty ; clear(). Removes all elements from the collection ; remove().
Read more >
SQL Window Functions | Advanced SQL - Mode Analytics
Basic windowing syntax; The usual suspects: SUM, COUNT, and AVG; ROW_NUMBER(); RANK() and DENSE_RANK(); NTILE; LAG and LEAD; Defining a window ...
Read more >
AggregateRating - Schema.org Type
The overall rating, based on a collection of reviews or ratings, of the item. More specific Types. EmployerAggregateRating. Examples. Example 1. Copy to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found