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

Call TMDb Person API with metadata language #6033

Merged
merged 5 commits into from May 20, 2021

Conversation

daullmer
Copy link
Member

Changes
Persons always had their English biography instead of the localized one.
I also changed the NormalizeLanguage method because the TMDb API doesn't support de-CH, fr-CH and it-CH, so it now uses the language without the country code.

Issues
Fixes #6015

@@ -49,20 +48,20 @@ public IEnumerable<ImageType> GetSupportedImages(BaseItem item)
public async Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, CancellationToken cancellationToken)
{
var person = (Person)item;
var language = item.GetPreferredMetadataLanguage();
Copy link
Member

Choose a reason for hiding this comment

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

Move to line 57, no need to call this if we do an early return

@jellyfin-bot jellyfin-bot added the merge conflict Merge conflicts should be resolved before a merge label May 20, 2021
@jellyfin-bot jellyfin-bot removed the merge conflict Merge conflicts should be resolved before a merge label May 20, 2021
@Bond-009 Bond-009 merged commit 95b9095 into jellyfin:master May 20, 2021
@daullmer daullmer deleted the tmdb-person-language branch May 22, 2021 10:03
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.

Actor metadata is not downloaded in the specified language
5 participants