mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
Fixed: Manual import when no reprocessing items after selecting series and season
This commit is contained in:
@@ -44,8 +44,9 @@ namespace Sonarr.Api.V3.ManualImport
|
||||
item.Episodes = processedItem.Episodes.ToResource();
|
||||
item.Rejections = processedItem.Rejections;
|
||||
|
||||
// Only set the language/quality if they're unknown
|
||||
if (item.Languages.Single() == Language.Unknown)
|
||||
// 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.
|
||||
if ((item.Languages.SingleOrDefault() ?? Language.Unknown) == Language.Unknown && processedItem.Languages.Any())
|
||||
{
|
||||
item.Languages = processedItem.Languages;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user