Fix issues with different languages than english when adding alternative titles.

Fixes #509
Leonardo Galli 8 years ago
parent 6cd7d46208
commit 0e81416c2f

@ -102,6 +102,11 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
var movie = new Movie(); var movie = new Movie();
if (langCode != "us")
{
movie.AlternativeTitles.Add(resource.original_title);
}
foreach (var alternativeTitle in resource.alternative_titles.titles) foreach (var alternativeTitle in resource.alternative_titles.titles)
{ {
if (alternativeTitle.iso_3166_1.ToLower() == langCode) if (alternativeTitle.iso_3166_1.ToLower() == langCode)

Loading…
Cancel
Save