[PR #1205] [MERGED] Allow specifying start and end of progress via API #3481

Closed
opened 2026-04-25 00:15:49 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/1205
Author: @lkiesow
Created: 11/23/2022
Status: Merged
Merged: 11/23/2022
Merged by: @advplyr

Base: masterHead: api-start-end-date


📝 Commits (1)

  • b0edac4 Allow specifying start and end of progress via API

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 server/objects/user/MediaProgress.js (+4 -4)

📄 Description

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}'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/1205 **Author:** [@lkiesow](https://github.com/lkiesow) **Created:** 11/23/2022 **Status:** ✅ Merged **Merged:** 11/23/2022 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `api-start-end-date` --- ### 📝 Commits (1) - [`b0edac4`](https://github.com/advplyr/audiobookshelf/commit/b0edac4234e26b4c2c187102e10da01c82141769) Allow specifying start and end of progress via API ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/objects/user/MediaProgress.js` (+4 -4) </details> ### 📄 Description 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}' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:15:49 +02:00
adam closed this issue 2026-04-25 00:15:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3481