Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit ratings #6

Open
binarygeek119 opened this issue Sep 30, 2022 · 2 comments
Open

limit ratings #6

binarygeek119 opened this issue Sep 30, 2022 · 2 comments

Comments

@binarygeek119
Copy link

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
Copy link
Contributor

666Warlock666 commented Oct 10, 2022

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
Copy link
Contributor

see #5 for code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants