mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
@@ -210,6 +210,20 @@ export const defaultState = {
|
||||
return Number.MAX_VALUE;
|
||||
},
|
||||
|
||||
previousAiring: function(item, direction) {
|
||||
const previousAiring = item.previousAiring;
|
||||
|
||||
if (previousAiring) {
|
||||
return moment(previousAiring).unix();
|
||||
}
|
||||
|
||||
if (direction === sortDirections.DESCENDING) {
|
||||
return -Number.MAX_VALUE;
|
||||
}
|
||||
|
||||
return Number.MAX_VALUE;
|
||||
},
|
||||
|
||||
episodeProgress: function(item) {
|
||||
const { statistics = {} } = item;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user