Add UI option for rescan scan option (#5254)

This commit is contained in:
WithoutPants 2024-09-11 17:29:27 +10:00 committed by GitHub
parent 5c4bf4ecdf
commit c9f76a01c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export const ScanOptions: React.FC<IScanOptions> = ({
scanGeneratePhashes,
scanGenerateThumbnails,
scanGenerateClipPreviews,
rescan,
} = options;
function setOptions(input: Partial<GQL.ScanMetadataInput>) {
@ -77,6 +78,13 @@ export const ScanOptions: React.FC<IScanOptions> = ({
headingID="config.tasks.generate_clip_previews_during_scan"
onChange={(v) => setOptions({ scanGenerateClipPreviews: v })}
/>
<BooleanSetting
id="force-rescan"
headingID="config.tasks.rescan"
tooltipID="config.tasks.rescan_tooltip"
checked={rescan ?? false}
onChange={(v) => setOptions({ rescan: v })}
/>
</>
);
};

View File

@ -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.

View File

@ -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"