mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 13:39:41 +00:00
Fix library consolidation filter and implement podcast support
This commit is contained in:
parent
b3cdd880e1
commit
23034e6672
12 changed files with 153 additions and 14 deletions
|
|
@ -258,6 +258,11 @@ export default {
|
|||
sublist: false
|
||||
})
|
||||
}
|
||||
items.push({
|
||||
text: 'Consolidated',
|
||||
value: 'consolidated',
|
||||
sublist: true
|
||||
})
|
||||
return items
|
||||
},
|
||||
podcastItems() {
|
||||
|
|
@ -303,7 +308,11 @@ export default {
|
|||
sublist: false
|
||||
})
|
||||
}
|
||||
|
||||
items.push({
|
||||
text: 'Consolidated',
|
||||
value: 'consolidated',
|
||||
sublist: true
|
||||
})
|
||||
return items
|
||||
},
|
||||
selectItems() {
|
||||
|
|
@ -350,6 +359,9 @@ export default {
|
|||
} else if (parts[0] === 'missing') {
|
||||
const item = this.missing.find((m) => m.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else if (parts[0] === 'consolidated') {
|
||||
const item = this.consolidated.find((c) => c.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else {
|
||||
filterValue = decoded
|
||||
}
|
||||
|
|
@ -504,6 +516,18 @@ export default {
|
|||
}
|
||||
]
|
||||
},
|
||||
consolidated() {
|
||||
return [
|
||||
{
|
||||
id: 'consolidated',
|
||||
name: 'Consolidated'
|
||||
},
|
||||
{
|
||||
id: 'not-consolidated',
|
||||
name: 'Not Consolidated'
|
||||
}
|
||||
]
|
||||
},
|
||||
sublistItems() {
|
||||
const sublistItems = (this[this.sublist] || []).map((item) => {
|
||||
if (typeof item === 'string') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue