mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 06:29:42 +00:00
feat: implement server-side cover dimension detection and update badge thresholds
This commit is contained in:
parent
5bf60d5ae3
commit
d0c09d04f1
16 changed files with 353 additions and 10 deletions
|
|
@ -601,6 +601,8 @@ class LibraryItemController {
|
|||
}
|
||||
|
||||
req.libraryItem.media.coverPath = result.cover
|
||||
req.libraryItem.media.coverWidth = result.width
|
||||
req.libraryItem.media.coverHeight = result.height
|
||||
req.libraryItem.media.changed('coverPath', true)
|
||||
await req.libraryItem.media.save()
|
||||
|
||||
|
|
@ -634,6 +636,8 @@ class LibraryItemController {
|
|||
}
|
||||
if (validationResult.updated) {
|
||||
req.libraryItem.media.coverPath = validationResult.cover
|
||||
req.libraryItem.media.coverWidth = validationResult.width
|
||||
req.libraryItem.media.coverHeight = validationResult.height
|
||||
req.libraryItem.media.changed('coverPath', true)
|
||||
await req.libraryItem.media.save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue