mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-05 08:51:33 +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:
|
duration:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
description: Duration in seconds
|
description: Duration in minutes
|
||||||
|
|
||||||
SeriesMetadata:
|
SeriesMetadata:
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
|
|
@ -782,7 +782,14 @@ class User extends Model {
|
||||||
error: 'Library item not found',
|
error: 'Library item not found',
|
||||||
statusCode: 404
|
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
|
mediaItemId = libraryItem.media.id
|
||||||
mediaProgress = libraryItem.media.mediaProgresses?.[0]
|
mediaProgress = libraryItem.media.mediaProgresses?.[0]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue