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

Localize genres filter #4541

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Conversation

sephrat
Copy link
Contributor

@sephrat sephrat commented Mar 8, 2022

Allows for localized genres selection in the advanced search popup, and as a side effect in /Settings/TheMovieDb.

/// Gets the genres for either Tv or Movies depending on media type
/// </summary>
/// <param name="media">Either `tv` or `movie`.</param>
[HttpGet("Genres/{media}")]
Copy link
Contributor Author

@sephrat sephrat Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this to SearchController for convenience (so that I could call DefaultLanguageCode()). It may make less sense for it to be there because the genres ID are TMDB-specific, but since we use these IDs in SearchController as well, I thought this would not smell that much.

@tidusjar tidusjar merged commit 0aa3cd0 into Ombi-app:develop Mar 17, 2022
@sephrat sephrat deleted the genres-localization branch March 20, 2022 13:44
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

Successfully merging this pull request may close these issues.

2 participants