advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.49k stars 466 forks source link

[Enhancement]: API Endpoint to scan a specific folder / Partial Scan #2653

Open Dr-Blank opened 7 months ago

Dr-Blank commented 7 months ago

Describe the feature/enhancement

currently scan api exists which scans all the folders for the library.

this feature would help queue scan of only one of child folder in one of the folders of the library similar to this plex endpoint

it isn't a new endpoint, just an optional query param with the complete path to the child folder

iconoclasthero commented 5 months ago

+1 mpc allows this: mpc update [<path>] Scan music directory for updates

The same functionality is requested from some sort of cli tool... if that's sending POST requests via curl, works for me.

hjk321 commented 3 months ago

Please note that for some this is not just a nice enhancement - it's practically neccesary if your library folder is accessed over a network. Full scans of medium to large libraries can take upwards of 30 minutes and waste bandwidth, so this feature would help mitigate that.