Provider: Local directory #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refactor the existing local directory photo source into the provider plugin interface (see #9).
This is the simplest provider and serves as the reference implementation for the plugin architecture.
Config Schema
Implementation Notes
get_photo_list()/PHOTOS_DIRlogiclist_photos()scans the directory for supported image extensions (jpg, png, webp, heic, bmp, tiff)get_photo()opens the file with PILget_thumbnail()can return a resized version directly (fast, no network)PhotoRef.id= relative file path from the configured rootPhotoRef.date= file mtime (or EXIF DateTimeOriginal if available)/photosMigration
The current
PHOTOS_DIRglobal and all direct filesystem access inserver.pyshould be replaced with calls through this provider. Per-image settings keyed by filename should continue to work —PhotoRef.namewill match the existing filenames.Depends on #9 (core architecture).