mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-01 04:34:07 +01:00
Fix:Remove podcast episode to also remove library file #636
This commit is contained in:
1 parent
4621c78573
commit
36bd6e649a
3 files changed
+21
-2
No files matched your search
@@ -482,5 +482,16 @@ class LibraryItem {
|
||||
return success
|
||||
})
|
||||
}
|
||||
|
||||
removeLibraryFile(ino) {
|
||||
if (!ino) return false
|
||||
var libraryFile = this.libraryFiles.find(lf => lf.ino === ino)
|
||||
if (libraryFile) {
|
||||
this.libraryFiles = this.libraryFiles.filter(lf => lf.ino !== ino)
|
||||
this.updatedAt = Date.now()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
module.exports = LibraryItem
|
||||
Reference in new issue
Block a user