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.

Rating or Filter is not working for me

See original GitHub issue

rating.gte or filter is not working for me.

Good Comedy:
  plex_search:
    genre: Comedy
  filters:
    rating.gte: 8
  sync_mode: sync
  collection_mode: default
  collection_order: alpha
  sort_title: '*201'
  summary: A collection of Comedy TV Shows with a rating of 8 and higher
|   File "/modules/config.py", line 462, in update_libraries
|     builder.run_methods(collection_obj, collection_name, rating_key_map, movie_map, show_map)
|   File "/modules/builder.py", line 876, in run_methods
|     if len(items) > 0:                                  rating_key_map = self.library.add_to_collection(collection_obj if collection_obj else collection_name, items, self.filters, self.details["show_filtered"], rating_key_map, movie_map, show_map)
|   File "/modules/plex.py", line 213, in add_to_collection
|     if (modifier == ".lte" and attr > filter_data) or (modifier == ".gte" and attr < filter_data):
| TypeError: '<' not supported between instances of 'NoneType' and 'float'

It processes 24 shows and then gives the error. For my Drama one, it only processes one show. It stops at the same point every time.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
meisnate12commented, Apr 3, 2021

fix is in develop. Also plex_search is much faster then using filters. i would suggest this:

Good Comedy:
  plex_search:
    genre: Comedy
    critic_rating.greater: 8
  sync_mode: sync
  collection_mode: default
  collection_order: alpha
  sort_title: '*201'
  summary: A collection of Comedy TV Shows with a rating of 8 and higher

Also this search above currently only works in develop

0reactions
meisnate12commented, Apr 3, 2021

leaving open until pushed to master

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instagram Filters Are Not Working [A Few Easy Fixes] - Alphr
Fortunately, there are ways to fix Instagram when the filters aren't working. This article will review ways to fix.
Read more >
YouTube Filters Not Working? Fixed! - Rankon Technologies
Firstly, Clear the cache and check if YouTube filter works or not. If it doesn't, go back to settings and clear data as...
Read more >
HOW to FIX YouTube search filter not working! Fixed!
HOW TO a use HACK for YouTube search filter not working ! (FIX/HACK). Youtube Search isn't working right now. In this tutorial, I...
Read more >
Filtering Reviews on the Glassdoor app
Tap on the company from the search results. Tap on the Reviews tab. Tap the Filter tab that is located on the left...
Read more >
Filtering and searching issues and pull requests - GitHub Docs
Tip: To clear your filter selection, click Clear current search query, filters, and sorts. Filtering pull requests by review status. You can use...
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