Fixed: Sorting search releases by language

This commit is contained in:
Bogdan 2023-05-26 23:19:42 +03:00 committed by GitHub
parent 3ac5edeb09
commit af55e322f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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