Fixed: Refresh movie failing for most movies. (Fixes #2007)

Fixed: Invisible download button if no release name was found.
pull/2/head
Leonardo Galli 7 years ago
parent 09d51dca0f
commit 1d7ce68431

@ -154,7 +154,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
{ {
if (alternativeTitle.iso_3166_1.ToLower() == langCode) 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") else if (alternativeTitle.iso_3166_1.ToLower() == "us")
{ {

@ -8,6 +8,8 @@ namespace NzbDrone.Core.Parser
private static readonly HashSet<IsoLanguage> All = new HashSet<IsoLanguage> private static readonly HashSet<IsoLanguage> All = new HashSet<IsoLanguage>
{ {
new IsoLanguage("en", "eng", Language.English), 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("fr", "fra", Language.French),
new IsoLanguage("es", "spa", Language.Spanish), new IsoLanguage("es", "spa", Language.Spanish),
new IsoLanguage("de", "deu", Language.German), new IsoLanguage("de", "deu", Language.German),

@ -50,6 +50,8 @@ module.exports = Backgrid.Cell.extend({
} else if (this.model.forceDownloadOk()){ } else if (this.model.forceDownloadOk()){
this.$el.html('<i class="icon-radarr-download-warning" title="Force add to download queue."/>'); this.$el.html('<i class="icon-radarr-download-warning" title="Force add to download queue."/>');
this.className = 'force-download-report-cell'; this.className = 'force-download-report-cell';
} else {
this.className = 'no-download-report-cell';
} }
return this; return this;

Loading…
Cancel
Save