From 3632d679fb15189a2ab14983c7b12e15efef22e4 Mon Sep 17 00:00:00 2001 From: Tim Hobbs Date: Mon, 24 Mar 2014 13:02:58 -0700 Subject: [PATCH] Image language fix The language only needs to be added if it is not already part of the list. It is not necessarily a problem, it just winds up with duplicates. --- MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs | 2 +- MediaBrowser.Providers/Movies/MovieDbProvider.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs b/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs index 29032ca29..cf7904e5c 100644 --- a/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs +++ b/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs @@ -172,7 +172,7 @@ namespace MediaBrowser.Providers.BoxSets if (!string.IsNullOrEmpty(language)) { // If preferred language isn't english, get those images too - if (imageLanguages.Contains(language, StringComparer.OrdinalIgnoreCase)) + if (!imageLanguages.Contains(language, StringComparer.OrdinalIgnoreCase)) { imageLanguages.Add(language); } diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs index 05f2d485e..7a63713f1 100644 --- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs @@ -295,7 +295,7 @@ namespace MediaBrowser.Providers.Movies if (!string.IsNullOrEmpty(language)) { // If preferred language isn't english, get those images too - if (imageLanguages.Contains(language, StringComparer.OrdinalIgnoreCase)) + if (!imageLanguages.Contains(language, StringComparer.OrdinalIgnoreCase)) { imageLanguages.Add(language); }