Skip to content
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

Watch folders for new/changed/removed photos #73

Open
1 of 7 tasks
SmilyOrg opened this issue Jul 11, 2023 · 2 comments
Open
1 of 7 tasks

Watch folders for new/changed/removed photos #73

SmilyOrg opened this issue Jul 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@SmilyOrg
Copy link
Owner

SmilyOrg commented Jul 11, 2023

Is your feature request related to a problem? Please describe.
Actually using the app in day-to-day life is not a great experience. You have to rescan all the time, which can take forever. If you haven't rescanned in a while, the newly added photos can also take minutes to hours to finish indexing. Additionally, there are a bunch of caches that aren't invalidated when scanning, even if you refresh the page, which seems broken and is very annoying.

Describe the solution you'd like

  • Watch for files in realtime, using https://github.com/fsnotify/fsnotify
  • Handle adding new files
  • Handle removing files
  • Handle file renames
  • Handle folder renames
  • Never (?) delete metadata on files so that e.g. moves do not require reindexing. This is also important in case you add e.g. tags to files
  • Add marking scenes as "stale" if the dependencies (i.e. files) change and refresh them, at least upon page refresh

Describe alternatives you've considered
Improving the caching part without adding watch.

Additional context
Add any other context or screenshots about the feature request here.

@ckyb
Copy link

ckyb commented Mar 26, 2024

To start, would you accept a simple -scan command via the cli?
Something like:
./photofield -scan <folder>
./photofield -scan-all

This would be similar to hitting "rescan" in the UI, but could be run periodically (or on first import of a bunch of folders).

@SmilyOrg
Copy link
Owner Author

Sure! That's a good idea!

Do you think it makes sense to be able to specify any folder even if it's not part of a collection?

Should you be able to specify a collection in addition/instead? (A collection can consist of multiple folders)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

2 participants