Merge remote-tracking branch 'upstream/master' into multi_move

This commit is contained in:
Tiberiu Ichim 2026-02-20 20:35:55 +02:00
commit b581b4f86c
2 changed files with 8 additions and 1 deletions

View file

@ -127,7 +127,7 @@ components:
duration:
type: integer
format: int64
description: Duration in seconds
description: Duration in minutes
SeriesMetadata:
type: object

View file

@ -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]
}