1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

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

Fixed: Invisible download button if no release name was found.
This commit is contained in:
Leonardo Galli 2017-08-27 18:05:28 +02:00
parent 09d51dca0f
commit 1d7ce68431
3 changed files with 5 additions and 1 deletions

View File

@ -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")
{

View File

@ -8,6 +8,8 @@ public static class IsoLanguages
private static readonly HashSet<IsoLanguage> All = new HashSet<IsoLanguage>
{
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),

View File

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