From 1d7ce68431ebc000764e1c1128547aaa1d19bc8f Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 27 Aug 2017 18:05:28 +0200 Subject: [PATCH] Fixed: Refresh movie failing for most movies. (Fixes #2007) Fixed: Invisible download button if no release name was found. --- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 2 +- src/NzbDrone.Core/Parser/IsoLanguages.cs | 2 ++ src/UI/Release/DownloadReportCell.js | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index c7652f406..0b4c601a5 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -154,7 +154,7 @@ public Movie GetMovieInfo(int TmdbId, Profile profile = null, bool hasPreDBEntry { if (alternativeTitle.iso_3166_1.ToLower() == langCode) { - altTitles.Add(new AlternativeTitle(alternativeTitle.title, SourceType.TMDB, TmdbId, IsoLanguages.Find(alternativeTitle.iso_3166_1.ToLower()).Language)); + altTitles.Add(new AlternativeTitle(alternativeTitle.title, SourceType.TMDB, TmdbId, IsoLanguages.Find(alternativeTitle.iso_3166_1.ToLower())?.Language ?? Language.English)); } else if (alternativeTitle.iso_3166_1.ToLower() == "us") { diff --git a/src/NzbDrone.Core/Parser/IsoLanguages.cs b/src/NzbDrone.Core/Parser/IsoLanguages.cs index 8ac75da31..86a4604cb 100644 --- a/src/NzbDrone.Core/Parser/IsoLanguages.cs +++ b/src/NzbDrone.Core/Parser/IsoLanguages.cs @@ -8,6 +8,8 @@ public static class IsoLanguages private static readonly HashSet All = new HashSet { new IsoLanguage("en", "eng", Language.English), + new IsoLanguage("us", "usa", Language.English), //For tmdb mapping + new IsoLanguage("uk", "brit", Language.English), //For tmdb mapping too. new IsoLanguage("fr", "fra", Language.French), new IsoLanguage("es", "spa", Language.Spanish), new IsoLanguage("de", "deu", Language.German), diff --git a/src/UI/Release/DownloadReportCell.js b/src/UI/Release/DownloadReportCell.js index 5a973d60d..d18000920 100644 --- a/src/UI/Release/DownloadReportCell.js +++ b/src/UI/Release/DownloadReportCell.js @@ -50,6 +50,8 @@ module.exports = Backgrid.Cell.extend({ } else if (this.model.forceDownloadOk()){ this.$el.html(''); this.className = 'force-download-report-cell'; + } else { + this.className = 'no-download-report-cell'; } return this;