New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider inotify as a replacement for manual/polling scans of folders #201
Comments
It's currently not supported but it would be a nice addition. |
Hi, any updates on this ? I have just installed photoview and I'm not sure what a good interval would be ? I would like photos to appear fast. Is 1 minute too fast ? I have set 1 hour at the moment ? Thanks |
I have quite a few bug fixes and improvements that I want to work on before this one but I really think this would be a great addition. If someone wants to work on this it'd be a big help. The scanner uses quite a lot of CPU resources when scanning for changed files, even if there are no new changes, as it will look up every photo in the database to check if it has been scanned before. I wouldn't recommend an interval below an hour especially for larger libraries. But give the issue a 👍 I sort after that when prioritising issues. |
Is there a way to trigger the scanner with a cli or curl call? I have a bash script solution with inotify that watches a folder and could trigger the scanner appropriately. |
Near the end of src/docs/usage-nextcloud.md, for instance, it advises the reader to configure a periodic scanner to check for changes to a folder.
Have you considered using inotify? Setting up inotify will eliminate the need for cronned scans or manual scanning.
Low-priority, but maybe consider it?
The text was updated successfully, but these errors were encountered: