Skip to content

Commit

Permalink
fix: distinct image language list before use
Browse files Browse the repository at this point in the history
in case the transformed main language was already in the list
  • Loading branch information
revam committed Aug 26, 2024
1 parent 845dc12 commit ae4b167
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Shoko.Server/Providers/TMDB/TmdbMetadataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ private async Task DownloadEpisodeImages(int episodeId, int showId, int seasonNu
private List<TitleLanguage> GetLanguages(TitleLanguage? mainLanguage = null) => _settingsProvider.GetSettings().TMDB.ImageLanguageOrder
.Select(a => a is TitleLanguage.Main ? mainLanguage is not TitleLanguage.None and not TitleLanguage.Unknown ? mainLanguage : null : a)
.WhereNotNull()
.Distinct()
.ToList();

#endregion
Expand Down

0 comments on commit ae4b167

Please sign in to comment.