audiobookshelf/server/objects
Lars Kiesow b0edac4234 Allow specifying start and end of progress via API
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}'
```
2022-11-23 01:32:52 +01:00
..
entities Update:Podcast episode downloads using episode title as filename without prefixing episode num 2022-10-02 17:12:44 -05:00
files Update:Setting up paths to eventually support subdirectory 2022-10-01 16:07:30 -05:00
mediaTypes Update:Podcast episode auto download schedule setting for max new episodes to download #1091 2022-10-26 16:55:16 -05:00
metadata Makes it so the when sorting and ignoring prefixes, they are actually ignored 2022-11-03 00:14:07 -04:00
settings Add:Server setting for default language #1103 2022-11-08 18:09:07 -06:00
user Allow specifying start and end of progress via API 2022-11-23 01:32:52 +01:00
Backup.js Remove dependency date-and-time 2022-07-06 19:18:27 -05:00
Collection.js Update collection id prefix 2022-11-12 14:31:45 -06:00
DailyLog.js Remove dependency date-and-time 2022-07-06 19:18:27 -05:00
DeviceInfo.js Add:User listening sessions page, Update:Listening sessions to save media times and device info 2022-05-26 19:09:46 -05:00
Feed.js Fix:Update library item RSS feed if item was updated #939 2022-08-28 15:41:51 -05:00
FeedEpisode.js Update:Reverse order for audiobook RSS feed episodes #952 2022-08-31 15:14:33 -05:00
FeedMeta.js Update:Remove rss feed dependencies add node-xml lib 2022-06-07 19:25:14 -05:00
Folder.js Fix: book id length & check duplicate ids, Change: library to lazy load book cards 2021-11-15 20:09:42 -06:00
Library.js Update:New library icons and picker using icon font 2022-10-18 12:09:36 -05:00
LibraryItem.js Fix:Set library item updatedAt when scan has updates, fixes updating an open RSS feed #1131 2022-11-10 17:25:17 -06:00
Notification.js Update:Notifications onTest for testing and parse title/body template #996 2022-09-24 16:15:16 -05:00
PlaybackSession.js Remove dependency date-and-time 2022-07-06 19:18:27 -05:00
PodcastEpisodeDownload.js Update:Podcast episode downloads using episode title as filename without prefixing episode num 2022-10-02 17:12:44 -05:00
Stream.js Add:Support for webm and webma audio files #1079 2022-10-20 17:24:51 -05:00
Task.js Add:Tasks widget in appbar for merging m4bs & remove old m4b merge routes 2022-10-02 14:16:17 -05:00