Fixed: Sorting search releases by language

(cherry picked from commit af55e322f1a9505a0b63739b499d6af72c3105a0)

Closes #8597
pull/8598/head
Bogdan 1 year ago
parent 4eb89eb851
commit e55c3f7ddf

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

@ -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"));

Loading…
Cancel
Save