Fixed: Sorting search releases by language

pull/5693/head
Bogdan 1 year ago committed by GitHub
parent 3ac5edeb09
commit af55e322f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -138,6 +138,7 @@ namespace NzbDrone.Core.DecisionEngine
{
Release = report,
ParsedEpisodeInfo = parsedEpisodeInfo,
Languages = parsedEpisodeInfo.Languages
};
decision = new DownloadDecision(remoteEpisode, new Rejection("Unable to parse release"));

Loading…
Cancel
Save