diff --git a/ui/v2.5/src/components/Settings/Tasks/ScanOptions.tsx b/ui/v2.5/src/components/Settings/Tasks/ScanOptions.tsx index c23916d2e..5b5c7809e 100644 --- a/ui/v2.5/src/components/Settings/Tasks/ScanOptions.tsx +++ b/ui/v2.5/src/components/Settings/Tasks/ScanOptions.tsx @@ -19,6 +19,7 @@ export const ScanOptions: React.FC = ({ scanGeneratePhashes, scanGenerateThumbnails, scanGenerateClipPreviews, + rescan, } = options; function setOptions(input: Partial) { @@ -77,6 +78,13 @@ export const ScanOptions: React.FC = ({ headingID="config.tasks.generate_clip_previews_during_scan" onChange={(v) => setOptions({ scanGenerateClipPreviews: v })} /> + setOptions({ rescan: v })} + /> ); }; diff --git a/ui/v2.5/src/docs/en/Manual/Tasks.md b/ui/v2.5/src/docs/en/Manual/Tasks.md index 9387c0d92..d3cd1f6a7 100644 --- a/ui/v2.5/src/docs/en/Manual/Tasks.md +++ b/ui/v2.5/src/docs/en/Manual/Tasks.md @@ -21,6 +21,7 @@ The scan task accepts the following options: | Generate perceptual hashes | Generates perceptual hashes for scene deduplication and identification. | | Generate thumbnails for images | Generates thumbnails for image files. | | Generate previews for image clips | Generates a gif/looping video as thumbnail for image clips/gifs. | +| Rescan | By default, Stash will only rescan existing files if the file's modified date has been updated since its previous scan. Stash will rescan files in the path when this option is enabled, regardless of the file modification time. Only required Stash needs to recalculate video/image metadata, or to rescan gallery zips. | ## Auto Tagging See the [Auto Tagging](/help/AutoTagging.md) page. diff --git a/ui/v2.5/src/locales/en-GB.json b/ui/v2.5/src/locales/en-GB.json index f2c5c5d1f..74073d1cc 100644 --- a/ui/v2.5/src/locales/en-GB.json +++ b/ui/v2.5/src/locales/en-GB.json @@ -545,6 +545,8 @@ "optimise_database": "Attempt to improve performance by analysing and then rebuilding the entire database file.", "optimise_database_warning": "Warning: while this task is running, any operations that modify the database will fail, and depending on your database size, it could take several minutes to complete. It also requires at the very minimum as much free disk space as your database is large, but 1.5x is recommended.", "plugin_tasks": "Plugin Tasks", + "rescan": "Rescan files", + "rescan_tooltip": "Rescan every file in the path. Used to force update file metadata and rescan zip files.", "scan": { "scanning_all_paths": "Scanning all paths", "scanning_paths": "Scanning the following paths"