1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-29 23:12:39 +01:00

Really fix Original Language in MapSeries

Fixes #5246
This commit is contained in:
Qstick 2022-11-27 12:14:28 -06:00
parent ca04c93666
commit 3a2a030432

View File

@ -174,7 +174,9 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
series.CleanTitle = Parser.Parser.CleanSeriesTitle(show.Title);
series.SortTitle = SeriesTitleNormalizer.Normalize(show.Title, show.TvdbId);
series.OriginalLanguage = IsoLanguages.Find(show.OriginalLanguage?.ToLower())?.Language ?? Language.English;
series.OriginalLanguage = show.OriginalLanguage.IsNotNullOrWhiteSpace() ?
IsoLanguages.Find(show.OriginalLanguage.ToLower())?.Language ?? Language.English :
Language.English;
if (show.FirstAired != null)
{