forked from Github/Axter-Stash
59 lines
2.5 KiB
YAML
59 lines
2.5 KiB
YAML
name: DupFileManager
|
|
description: Manages duplicate files.
|
|
version: 0.1.0
|
|
url: https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/DupFileManager
|
|
settings:
|
|
mergeDupFilename:
|
|
displayName: Merge Duplicate Tags
|
|
description: Before deletion, merge potential source in the duplicate file names for tag names, performers, and studios.
|
|
type: BOOLEAN
|
|
moveToTrashCan:
|
|
displayName: Trash Can
|
|
description: Enable to move files to trash can instead of permanently delete file.
|
|
type: BOOLEAN
|
|
dupFileTag:
|
|
displayName: Duplicate File Tag Name
|
|
description: (Default = DuplicateMarkForDeletion) Tag used to tag duplicates with lower resolution, duration, and file name length.
|
|
type: STRING
|
|
dupWhiteListTag:
|
|
displayName: Duplicate Whitelist Tag Name
|
|
description: If populated, a tag name used to tag duplicates in the whitelist. E.g. DuplicateWhitelistFile
|
|
type: STRING
|
|
zwhitelist:
|
|
displayName: White List
|
|
description: A comma seperated list of paths NOT to be deleted. E.g. C:\Favorite\,E:\MustKeep\
|
|
type: STRING
|
|
zxgraylist:
|
|
displayName: Gray List
|
|
description: List of preferential paths to determine which duplicate should be the primary. E.g. C:\2nd_Favorite\,H:\ShouldKeep\
|
|
type: STRING
|
|
zzblacklist:
|
|
displayName: Black List
|
|
description: List of LEAST preferential paths to determine primary candidates for deletion. E.g. C:\Downloads\,F:\DeleteMeFirst\
|
|
type: STRING
|
|
zzdebugTracing:
|
|
displayName: Debug Tracing
|
|
description: (Default=false) [***For Advanced Users***] Enable debug tracing. When enabled, additional tracing logging is added to Stash\plugins\DupFileManager\DupFileManager.log
|
|
type: BOOLEAN
|
|
exec:
|
|
- python
|
|
- "{pluginDir}/DupFileManager.py"
|
|
interface: raw
|
|
tasks:
|
|
- name: Tag Duplicate Filename
|
|
description: Set tag DuplicateMarkForDeletion to the duplicate with lower resolution, duration, file name length, and/or black list path.
|
|
defaultArgs:
|
|
mode: merge_dup_filename_task
|
|
- name: Delete Duplicates
|
|
description: Delete duplicate files
|
|
defaultArgs:
|
|
mode: delete_duplicates
|
|
- name: Merge Duplicate Filename
|
|
description: Merge duplicate filename sourcetag names, performers, and studios.
|
|
defaultArgs:
|
|
mode: merge_dup_filename_task
|
|
- name: Dry Run Delete Duplicates
|
|
description: Only perform a dry run (logging only) of duplicate file deletions. Dry Run setting is ignore when running this task.
|
|
defaultArgs:
|
|
mode: dryrun_delete_duplicates
|