feat(calendar): episode type filter - #891
Closed
rectifyer wants to merge 1 commit into
Closed
Conversation
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.
Summary
Adds an
episode_typesquery filter to the calendarshowsandmediaendpoints, letting callers narrow (or exclude) episodes by their role in a season's run.Details
episode_typestakes a comma separated list of episode roles:series_premiere,season_premiere,mid_season_premiere,mid_season_finale,season_finale,series_finale. Prefix a role with-to exclude it instead. Included roles match any of the listed roles; excluded roles must all be absent. Unrecognised values are ignored.The filter is scoped to the two feeds that resolve their own episodes. The dedicated
shows/{new,premieres,finales}andreleases/hot/*routes already fix their episode roles, andmovies/streaming/dvdcarry no episodes to narrow.On the merged
mediafeed, including a role returns matching episodes only (a movie carries no episode role), while excluding a role leaves movies in place.Example queries
Only season finales airing on my shows calendar this week:
All premieres (series or season) on the global shows calendar:
My shows calendar for the month, with every finale dropped:
Merged media feed narrowed to mid-season finale episodes only (movies fall away since a movie has no episode role):
Merged media feed keeping movies but excluding finale episodes: