[PR #2249] [MERGED] Add API to update a path on a watched library folder #3679

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2249
Author: @mikiher
Created: 10/24/2023
Status: Merged
Merged: 10/26/2023
Merged by: @advplyr

Base: masterHead: watcher-update-api


📝 Commits (3)

  • e054b9a Add API to update a path on a watched library folder
  • 3bccd52 Merge branch 'master' into watcher-update-api
  • f9c4dd2 Update watcher function calls, add js docs

📊 Changes

2 files changed (+50 additions, -0 deletions)

View changed files

📝 server/controllers/MiscController.js (+48 -0)
📝 server/routers/ApiRouter.js (+2 -0)

📄 Description

This adds a an API for notifying the server of an update to a watched library folder. Each call to the API essentially mimics a watcher event, and calls the same event listener that listens to real watcher events.

It is meant to be used by an external watcher (e.g. one that would run on a Docker host), in an attempt to mitigate #2204 (watcher not firing events when watching bind mounts on docker). I'm currently working on such an external watcher that could be run on node.js on the docker host and which will use this API. Hopefully this external watcher can also be packaged as an executable, and could be installed as a service on the host machine.


🔄 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/2249 **Author:** [@mikiher](https://github.com/mikiher) **Created:** 10/24/2023 **Status:** ✅ Merged **Merged:** 10/26/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `watcher-update-api` --- ### 📝 Commits (3) - [`e054b9a`](https://github.com/advplyr/audiobookshelf/commit/e054b9a54ca392930901695e2a74b2e306c7a5b0) Add API to update a path on a watched library folder - [`3bccd52`](https://github.com/advplyr/audiobookshelf/commit/3bccd5219697eaa97bd96f193707d182c7357f34) Merge branch 'master' into watcher-update-api - [`f9c4dd2`](https://github.com/advplyr/audiobookshelf/commit/f9c4dd24574600c317cf0b992de0defde4eca73b) Update watcher function calls, add js docs ### 📊 Changes **2 files changed** (+50 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/controllers/MiscController.js` (+48 -0) 📝 `server/routers/ApiRouter.js` (+2 -0) </details> ### 📄 Description This adds a an API for notifying the server of an update to a watched library folder. Each call to the API essentially mimics a watcher event, and calls the same event listener that listens to real watcher events. It is meant to be used by an external watcher (e.g. one that would run on a Docker host), in an attempt to mitigate #2204 (watcher not firing events when watching bind mounts on docker). I'm currently working on such an external watcher that could be run on node.js on the docker host and which will use this API. Hopefully this external watcher can also be packaged as an executable, and could be installed as a service on the host machine. --- <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:16:37 +02:00
adam closed this issue 2026-04-25 00:16:37 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3679