fix(base-scanner): fix PROCESSING status persisting for unmonitored seasons (#2311)
BaseScanner's fallthrough logic was preventing unmonitored seasons from resetting to UNKNOWN status. fix #2310
This commit is contained in:
@@ -332,6 +332,11 @@ class BaseScanner<T> {
|
|||||||
season.processing &&
|
season.processing &&
|
||||||
existingSeason.status !== MediaStatus.DELETED
|
existingSeason.status !== MediaStatus.DELETED
|
||||||
? MediaStatus.PROCESSING
|
? MediaStatus.PROCESSING
|
||||||
|
: !season.is4kOverride &&
|
||||||
|
!season.processing &&
|
||||||
|
season.episodes === 0 &&
|
||||||
|
existingSeason.status === MediaStatus.PROCESSING
|
||||||
|
? MediaStatus.UNKNOWN
|
||||||
: existingSeason.status;
|
: existingSeason.status;
|
||||||
|
|
||||||
// Same thing here, except we only do updates if 4k is enabled
|
// Same thing here, except we only do updates if 4k is enabled
|
||||||
@@ -347,6 +352,11 @@ class BaseScanner<T> {
|
|||||||
season.processing &&
|
season.processing &&
|
||||||
existingSeason.status4k !== MediaStatus.DELETED
|
existingSeason.status4k !== MediaStatus.DELETED
|
||||||
? MediaStatus.PROCESSING
|
? MediaStatus.PROCESSING
|
||||||
|
: season.is4kOverride &&
|
||||||
|
!season.processing &&
|
||||||
|
season.episodes4k === 0 &&
|
||||||
|
existingSeason.status4k === MediaStatus.PROCESSING
|
||||||
|
? MediaStatus.UNKNOWN
|
||||||
: existingSeason.status4k;
|
: existingSeason.status4k;
|
||||||
} else {
|
} else {
|
||||||
newSeasons.push(
|
newSeasons.push(
|
||||||
|
|||||||
Reference in New Issue
Block a user