mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 04:39:40 +00:00
New data model Book media type contains Audiobooks updates
This commit is contained in:
parent
1dde02b170
commit
c4eeb1cfb7
30 changed files with 347 additions and 247 deletions
|
|
@ -139,7 +139,18 @@ export default {
|
|||
if (!this.selected) return ''
|
||||
var parts = this.selected.split('.')
|
||||
if (parts.length > 1) {
|
||||
return this.$decode(parts[1])
|
||||
var decoded = this.$decode(parts[1])
|
||||
if (decoded.startsWith('aut_')) {
|
||||
var author = this.authors.find((au) => au.id == decoded)
|
||||
if (author) return author.name
|
||||
return ''
|
||||
}
|
||||
if (decoded.startsWith('ser_')) {
|
||||
var series = this.series.find((se) => se.id == decoded)
|
||||
if (series) return series.name
|
||||
return ''
|
||||
}
|
||||
return decoded
|
||||
}
|
||||
var _sel = this.items.find((i) => i.value === this.selected)
|
||||
if (!_sel) return ''
|
||||
|
|
@ -176,7 +187,7 @@ export default {
|
|||
} else {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.id
|
||||
value: this.$encode(item.id)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -38,20 +38,20 @@ export default {
|
|||
},
|
||||
{
|
||||
text: 'Author (First Last)',
|
||||
value: 'media.metadata.author'
|
||||
value: 'media.metadata.authorName'
|
||||
},
|
||||
{
|
||||
text: 'Author (Last, First)',
|
||||
value: 'media.metadata.authorLF'
|
||||
value: 'media.metadata.authorNameLF'
|
||||
},
|
||||
{
|
||||
text: 'Added At',
|
||||
value: 'addedAt'
|
||||
},
|
||||
{
|
||||
text: 'Duration',
|
||||
value: 'media.duration'
|
||||
},
|
||||
// {
|
||||
// text: 'Duration',
|
||||
// value: 'media.duration'
|
||||
// },
|
||||
{
|
||||
text: 'Size',
|
||||
value: 'size'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue