Fixed: Reprocessing multi-language file in Manual Import
This commit is contained in:
parent
16e5ffa467
commit
ee0048c768
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue