mirror of
https://github.com/stashapp/stash.git
synced 2025-12-11 04:43:03 -06:00
Add UI option for rescan scan option (#5254)
This commit is contained in:
parent
5c4bf4ecdf
commit
c9f76a01c5
@ -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 })}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user