mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-23 05:40:12 +00:00
Add missing Person Translations
And I found another endpoint/method missing that I needed,
this time for the people. I did a PR for mapping the person bio.
to overview previously, but forgot to check if the methods/endpoints
to get the translation was mapped… which they were not… so here I
am again, with another PR. 😅
This commit is contained in:
parent
32ee2f0e56
commit
4093aadf18
@ -160,5 +160,10 @@ namespace TMDbLib.Client
|
||||
{
|
||||
return await GetPersonMethodInternal<TvCredits>(personId, PersonMethods.TvCredits, language: language, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task<TranslationsContainer> GePersonTranslationsAsync(int personId, CancellationToken cancellationToken = default)
|
||||
{
|
||||
return await GetPersonMethodInternal<TranslationsContainer>(personId, PersonMethods.Translations, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
@ -70,5 +70,8 @@ namespace TMDbLib.Objects.People
|
||||
|
||||
[JsonProperty("tv_credits")]
|
||||
public TvCredits TvCredits { get; set; }
|
||||
|
||||
[JsonProperty("translations")]
|
||||
public TranslationsContainer Translations { get; set; }
|
||||
}
|
||||
}
|
@ -19,6 +19,8 @@ namespace TMDbLib.Objects.People
|
||||
[EnumValue("tagged_images")]
|
||||
TaggedImages = 16,
|
||||
[EnumValue("changes")]
|
||||
Changes = 32
|
||||
Changes = 32,
|
||||
[EnumValue("translations")]
|
||||
Translations = 64,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user