Make it so that the app gets notified when new books are copied into the included directories. It will then show a dialog ask the user to fetch the metadata from the API.
The same thing could be observed in most of the galleries. They know about it when you have new pictures created. But how?
I have a hunch that it is made possible by ContentObserver. But I'm not sure about it.
Refer to this repository: https://github.com/android/storage-samples/tree/main/MediaStore