mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-01 20:54:06 +01:00
New data model migration for users, bookmarks and playback sessions
This commit is contained in:
1 parent
4c2ad3ede5
commit
68b13ae45f
17 files changed
+462
-192
No files matched your search
@@ -46,7 +46,7 @@ class BookMetadata {
|
||||
subtitle: this.subtitle,
|
||||
authors: this.authors.map(a => ({ ...a })), // Author JSONMinimal with name and id
|
||||
narrators: [...this.narrators],
|
||||
series: this.series.map(s => ({ ...s })),
|
||||
series: this.series.map(s => ({ ...s })), // Series JSONMinimal with name, id and sequence
|
||||
genres: [...this.genres],
|
||||
publishedYear: this.publishedYear,
|
||||
publishedDate: this.publishedDate,
|
||||
@@ -80,6 +80,10 @@ class BookMetadata {
|
||||
}
|
||||
}
|
||||
|
||||
clone() {
|
||||
return new BookMetadata(this.toJSON())
|
||||
}
|
||||
|
||||
get titleIgnorePrefix() {
|
||||
if (!this.title) return ''
|
||||
if (this.title.toLowerCase().startsWith('the ')) {
|
||||
|
||||
Reference in new issue
Block a user