Fixed: Sorting search releases by language

(cherry picked from commit af55e322f1a9505a0b63739b499d6af72c3105a0)

Closes #8597
This commit is contained in:
Bogdan 2023-05-26 23:19:42 +03:00
parent 4eb89eb851
commit e55c3f7ddf
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export const defaultState = {
return 10000;
}
return item.languages[0].id;
return item.languages[0]?.id ?? 0;
},
indexerFlags: function(item, direction) {

View File

@ -118,6 +118,7 @@ namespace NzbDrone.Core.DecisionEngine
{
Release = report,
ParsedMovieInfo = parsedMovieInfo,
Languages = parsedMovieInfo.Languages
};
decision = new DownloadDecision(remoteMovie, new Rejection("Unable to parse release"));