mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-28 21:19:42 +00:00
Merge remote-tracking branch 'upstream/master' into multi_move
This commit is contained in:
commit
b581b4f86c
2 changed files with 8 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ components:
|
|||
duration:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Duration in seconds
|
||||
description: Duration in minutes
|
||||
|
||||
SeriesMetadata:
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -782,7 +782,14 @@ class User extends Model {
|
|||
error: 'Library item not found',
|
||||
statusCode: 404
|
||||
}
|
||||
} else if (libraryItem.mediaType !== 'book') {
|
||||
Logger.error(`[User] createUpdateMediaProgress: library item ${progressPayload.libraryItemId} is not a book`)
|
||||
return {
|
||||
error: 'Library item is not a book',
|
||||
statusCode: 400
|
||||
}
|
||||
}
|
||||
|
||||
mediaItemId = libraryItem.media.id
|
||||
mediaProgress = libraryItem.media.mediaProgresses?.[0]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue