Fixed: Sorting search releases by language
This commit is contained in:
parent
3ac5edeb09
commit
af55e322f1
|
@ -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) {
|
||||||
|
|
|
@ -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"));
|
||||||
|
|
Loading…
Reference in New Issue