giuseppe99barchetta / SuggestArr

Effortlessly request recommended movies, TV shows and anime to Jellyseer/Overseer based on your recently watched content on Jellyfin, Plex or Emby—let SuggestArr handle it all automatically, keeping your library fresh with new and exciting content!
MIT License
227 stars 2 forks source link

[REQ] Filter by ratings #72

Closed vahtos closed 4 weeks ago

vahtos commented 1 month ago

Related to #57. It would be great if there was a way to apply more rules to what is requested. For example, filtering by rating would be very useful. Kind of like what Overcrawlerr does.

Ideally, this would include ratings from various sources (Rotten Tomatoes, TMDB, Trakt, IMDB, etc.), but the easiest to implement is probably TMDB considering the existing integration. It should also consider how many review/votes were aggregated to form that score.

A couple of things that would need to be considered:

Example rules as they might appear in config.yaml:

FILTERS:
    - type: rating
      source: tmdb
      threshold: 75
      minimumVotes: 50
      failOnMissing: true

   -  type: rating   
      source: imdb
      threshold: 7.5
      minimumVotes: 100
      failOnMissing: false
giuseppe99barchetta commented 1 month ago

Hi @vahtos! Thank you for the suggestions 🙂

I've pushed an update to the nightly tag that includes some of these changes. Could you help test it out and let me know how it works?

vahtos commented 1 month ago

WOW! That was so fast. It works for me, however a couple of notes:

giuseppe99barchetta commented 1 month ago

Hi @vahtos! Thank you so much for your detailed feedback and testing. It’s incredibly helpful for the development of this project!

I’ve pushed an update to the nightly tag that includes several fixes and improvements. I’ve also added a new field to allow selecting the original language of the content, with support for multiple language filters.

I’d love to hear your thoughts on it!

vahtos commented 1 month ago

Hi @giuseppe99barchetta thank you for your time in working on this! I originally retested without pulling the new image... that's why you should never test before coffee :)

The issue of the bool being expected to be a string still exists, even after pulling the new image, though the screenshot here is from before updating the image.

Data type issue in how this toggle is saved (saved as bool, expected to be string) image image

giuseppe99barchetta commented 1 month ago

Hi @vahtos, thanks for the report! It looks like you're not on the latest nightly version. It seems to be the same one from yesterday. Could you try pulling the latest update?

vahtos commented 1 month ago

Hi @vahtos, thanks for the report! It looks like you're not on the latest nightly version. It seems to be the same one from yesterday. Could you try pulling the latest update?

Yes, sorry about that. I've updated the previous comment.

giuseppe99barchetta commented 1 month ago

Hi @vahtos, thanks for the report! It looks like you're not on the latest nightly version. It seems to be the same one from yesterday. Could you try pulling the latest update?

Yes, sorry about that. I've updated the previous comment.

Have you encountered any other issues? Anyway I pushed the fix for "Bool object has no attribute 'lower'" error right now :)

vahtos commented 1 month ago

Not related to this ticket, no. I confirmed the rating threshold and vote count seem to be working (all suggestions within the values I set). All of the suggestions also followed the other filter settings I put, but though this is a small sample size.

giuseppe99barchetta commented 1 month ago

Not related to this ticket, no. I confirmed the rating threshold and vote count seem to be working (all suggestions within the values I set). All of the suggestions also followed the other filter settings I put, but though this is a small sample size.

Great to hear the filters are working as expected! I'll plan to release this update soon. Just want to solve the duplicate request bug first. Thanks again for your feedback and testing!