Fix cache key

This commit is contained in:
David Ullmer 2021-05-18 13:17:34 +02:00
parent 96e05e5b66
commit 6353966abd

View File

@ -281,7 +281,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
/// <returns>The TMDb person information or null if not found.</returns>
public async Task<Person> GetPersonAsync(int personTmdbId, string language, CancellationToken cancellationToken)
{
var key = $"person-{personTmdbId.ToString(CultureInfo.InvariantCulture)}";
var key = $"person-{personTmdbId.ToString(CultureInfo.InvariantCulture)}-{language}";
if (_memoryCache.TryGetValue(key, out Person person))
{
return person;