Fixed: Reprocessing multi-language file in Manual Import

This commit is contained in:
Mark McDowall 2024-01-14 09:55:37 -08:00 committed by Mark McDowall
parent 16e5ffa467
commit ee0048c768
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace Sonarr.Api.V3.ManualImport
// Only set the language/quality if they're unknown and languages were returned. // Only set the language/quality if they're unknown and languages were returned.
// Languages won't be returned when reprocessing if the season/episode isn't filled in yet and we don't want to return no languages to the client. // Languages won't be returned when reprocessing if the season/episode isn't filled in yet and we don't want to return no languages to the client.
if ((item.Languages.SingleOrDefault() ?? Language.Unknown) == Language.Unknown && processedItem.Languages.Any()) if (item.Languages.Count <= 1 && (item.Languages.SingleOrDefault() ?? Language.Unknown) == Language.Unknown && processedItem.Languages.Any())
{ {
item.Languages = processedItem.Languages; item.Languages = processedItem.Languages;
} }