mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-09 20:04:11 +01:00
This patch is a minor extension to the update progress and batch update progress API and allows you to specify `finishedAt` and `startedAt` when updating a progress. If not specified, both values are still automatically set to the current time. If just `finishedAt` is specified, `startedAt` is set to the same value. Example API request: ``` ❯ curl -i -X PATCH \ 'http://127.0.0.1:3333/api/me/progress/li_ywupqxw5d22adcadpa' \ -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJyb290IiwidXNlcm5hbWUiOiJyb290IiwiaWF0IjoxNjY4OTYxNjAxfQ._NbilCoFy_hfoqy7uvbV4E_0X6qgLYapQ_MoRptP0oI' \ -H 'Content-Type: application/json' \ --data-raw '{"isFinished":true, "finishedAt": 1668556852000, "startedAt": 1668056852000}' ``` |
||
|---|---|---|
| .. | ||
| controllers | ||
| finders | ||
| libs | ||
| managers | ||
| objects | ||
| providers | ||
| routers | ||
| scanner | ||
| utils | ||
| Auth.js | ||
| Db.js | ||
| Logger.js | ||
| Server.js | ||
| Watcher.js | ||