MattsShack / JellyPoster

JellyPoster for Jellyfin displays the current playing Movie or TV show poster on a screen.
GNU General Public License v3.0
6 stars 3 forks source link

limit ratings #6

Open binarygeek119 opened 2 years ago

binarygeek119 commented 2 years ago

be able to limit the max rating to be shown. max_rating=pg-13 this would limit jellyposter to show all poster under pg-13

666Warlock666 commented 2 years ago

assuming you mead for random?

just add maxOfficialRating=PG-13

i.e get_random_movie_poster = requests.get(f'{jellyfin_url}/Items?Userid={jellyfin_userid}&limit=1&Recursive=true&IncludeItemTypes=Movie&IsPlayed=False&sortBy=Random&maxOfficialRating=PG-13&api_key={jellyfin_api_key}')

note if the movie /show does not have a rating it will be shown

see for API's more info

666Warlock666 commented 2 years ago

see https://github.com/MattsShack/JellyPoster/issues/5 for code