Update:Remove unused missing/invalid audiobook parts logic and keys

This commit is contained in:
advplyr 2024-03-21 14:38:52 -05:00
parent 8d7530254c
commit ff5226fa93
33 changed files with 19 additions and 190 deletions

View file

@ -32,7 +32,6 @@ class AudioFile {
this.metaTags = null
this.manuallyVerified = false
this.invalid = false
this.exclude = false
this.error = null
@ -53,7 +52,6 @@ class AudioFile {
trackNumFromFilename: this.trackNumFromFilename,
discNumFromFilename: this.discNumFromFilename,
manuallyVerified: !!this.manuallyVerified,
invalid: !!this.invalid,
exclude: !!this.exclude,
error: this.error || null,
format: this.format,
@ -78,7 +76,6 @@ class AudioFile {
this.addedAt = data.addedAt
this.updatedAt = data.updatedAt
this.manuallyVerified = !!data.manuallyVerified
this.invalid = !!data.invalid
this.exclude = !!data.exclude
this.error = data.error || null
@ -112,10 +109,6 @@ class AudioFile {
}
}
get isValidTrack() {
return !this.invalid && !this.exclude
}
// New scanner creates AudioFile from AudioFileScanner
setDataFromProbe(libraryFile, probeData) {
this.ino = libraryFile.ino || null