1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

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

View File

@ -49,7 +49,7 @@ public object ReprocessItems([FromBody] List<ManualImportReprocessResource> item
// 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;
} }