mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-10 20:26:17 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user