mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-15 08:19:37 +00:00
Add library match all back updated to support v2 models
This commit is contained in:
parent
ff294867f8
commit
35f3b5863f
6 changed files with 60 additions and 45 deletions
|
|
@ -200,6 +200,9 @@ class Db {
|
|||
getLibraryItem(id) {
|
||||
return this.libraryItems.find(li => li.id === id)
|
||||
}
|
||||
getLibraryItemsInLibrary(libraryId) {
|
||||
return this.libraryItems.filter(li => li.libraryId === libraryId)
|
||||
}
|
||||
getPlaybackSession(id) {
|
||||
return this.sessionsDb.select((pb) => pb.id == id).then((results) => {
|
||||
if (results.data.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue