The Free Software Media System - Server Backend & API
use int.Parse
cviumc0ea56a10dd0
diff --git a/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonImageProvider.cs b/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonImageProvider.csindex 0ea3f14a6f..bf42ceadef 100644--- a/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonImageProvider.cs+++ b/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonImageProvider.cs@@ -55,7 +55,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Peoplereturn Enumerable.Empty<RemoteImageInfo>();}- var personResult = await _tmdbClientManager.GetPersonAsync(Convert.ToInt32(personTmdbId), cancellationToken).ConfigureAwait(false);+ var personResult = await _tmdbClientManager.GetPersonAsync(int.Parse(personTmdbId, CultureInfo.InvariantCulture), cancellationToken).ConfigureAwait(false);if (personResult?.Images?.Profiles == null){return Enumerable.Empty<RemoteImageInfo>();diff --git a/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonProvider.cs b/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonProvider.csindex cf6a362755..1757c82678 100644--- a/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonProvider.cs+++ b/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonProvider.cs@@ -32,7 +32,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People{if (searchInfo.TryGetProviderId(MetadataProvider.Tmdb, out var personTmdbId)){- var personResult = await _tmdbClientManager.GetPersonAsync(Convert.ToInt32(personTmdbId), cancellationToken).ConfigureAwait(false);+ var personResult = await _tmdbClientManager.GetPersonAsync(int.Parse(personTmdbId, CultureInfo.InvariantCulture), cancellationToken).ConfigureAwait(false);if (personResult != null){