Repository navigation
media filters: add the parental guide filters - #321
Merged
Merged
Conversation
The contract (trakt-api 719eef7) adds parental_nudity|violence|profanity|alcohol|frightening (range 0-3) and parental_include_unrated to the media filter params. The live API applies them (checked 2026-10-31 on movies/shows popular). Every module with the media filters gets the flags, reusing str.ParentalGuide and the range check of smart_lists -a items.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
-parental_nudity,-parental_violence,-parental_profanity,-parental_alcoholand-parental_frighteningtake a severity rangemin-maxfrom 0 to 3.-parental_include_unratedkeeps titles without a parental guide. They work on themoviesandshowslists,calendars,lists,media,recommendationsandusers -a watchlist|history|collection|list_items|activities.smart_lists -a itemsalready had them.uri.MediaFiltersanduri.SocialActivityOptionsget the sixParental*fields.The contract (trakt-api
719eef7) adds these filters to the media filter params. A live check on 2026-10-31 (publicmovies|shows/popular) showed Trakt applies all five:0-0and3-3share no titles. A made-up parameter changed nothing.include_unratedadds titles.The flags reuse the existing smart-lists support:
options.Parental(str.ParentalGuide) and the usage strings. The0-3range check moved from the smart-lists handler into a sharedcheckParentalRanges, so a bad range stops the run before any request on every module. Sync's up-next-nitro route also takes these filters; it has its own option struct and flags and isn't in this PR.An AI assistant (Claude Code) wrote the live-check script, the change, the tests and the docs, and drafted this description.