mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
New: Series Overview sorted by Next Airing now sorts all remaining items by their Last Aired date.
This commit is contained in:
@@ -59,12 +59,18 @@ define(
|
||||
//Sorters
|
||||
nextAiring: function (model, attr) {
|
||||
var nextAiring = model.get(attr);
|
||||
|
||||
if (!nextAiring) {
|
||||
return Number.MAX_VALUE;
|
||||
|
||||
if (nextAiring) {
|
||||
return Moment(nextAiring).unix();
|
||||
}
|
||||
|
||||
var previousAiring = model.get(attr.replace('nextAiring', 'previousAiring'));
|
||||
|
||||
if (previousAiring) {
|
||||
return 10000000000 - Moment(previousAiring).unix();
|
||||
}
|
||||
|
||||
return Moment(nextAiring).unix();
|
||||
return Number.MAX_VALUE;
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user