Fix sorting search releases by language

This commit is contained in:
Bogdan 2023-05-25 04:41:18 +03:00
parent f05405fe1c
commit e7229587b6
2 changed files with 2 additions and 1 deletions

View File

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

View File

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