|
| 1 | +# DupFileManager: Ver 0.1.2 (By David Maisonave) |
| 2 | + |
| 3 | +DupFileManager is a [Stash](https://github.com/stashapp/stash) plugin which manages duplicate file in the Stash system. |
| 4 | + |
| 5 | +### Features |
| 6 | + |
| 7 | +- Can merge potential source in the duplicate file names for tag names, performers, and studios. |
| 8 | + - Normally when Stash searches the file name for tag names, performers, and studios, it only does so using the primary file. |
| 9 | +- Delete duplicate file task with the following options: |
| 10 | + - Tasks (Settings->Task->[Plugin Tasks]->DupFileManager) |
| 11 | + - **Tag Duplicates** - Set tag DuplicateMarkForDeletion to the duplicates with lower resolution, duration, file name length, and/or black list path. |
| 12 | + - **Delete Tagged Duplicates** - Delete scenes having DuplicateMarkForDeletion tag. |
| 13 | + - **Delete Duplicates** - Deletes duplicate files. Performs deletion without first tagging. |
| 14 | + - Plugin UI options (Settings->Plugins->Plugins->[DupFileManager]) |
| 15 | + - Has a 3 tier path selection to determine which duplicates to keep, and which should be candidates for deletions. |
| 16 | + - **Whitelist** - List of paths NOT to be deleted. |
| 17 | + - E.g. C:\Favorite\,E:\MustKeep\ |
| 18 | + - **Gray-List** - List of preferential paths to determine which duplicate should be the primary. |
| 19 | + - E.g. C:\2nd_Favorite\,H:\ShouldKeep\ |
| 20 | + - **Blacklist** - List of LEAST preferential paths to determine primary candidates for deletion. |
| 21 | + - E.g. C:\Downloads\,F:\DeleteMeFirst\ |
| 22 | + - **Permanent Delete** - Enable to permanently delete files, instead of moving files to trash can. |
| 23 | + - **Max Dup Process** - Use to limit the maximum files to process. Can be used to do a limited test run. |
| 24 | + - **Merge Duplicate Tags** - Before deletion, merge metadata from duplicate. E.g. Tag names, performers, studios, title, galleries, rating, details, etc... |
| 25 | + - **Swap High Resolution** - When enabled, swaps higher resolution files between whitelist and blacklist/graylist files. |
| 26 | + - **Swap Longer Duration** - When enabled, swaps scene with longer duration. |
| 27 | + - Options available via DupFileManager_config.py |
| 28 | + - **dup_path** - Alternate path to move deleted files to. Example: "C:\TempDeleteFolder" |
| 29 | + - **toRecycleBeforeSwap** - When enabled, moves destination file to recycle bin before swapping files. |
| 30 | + - **addPrimaryDupPathToDetails** - If enabled, adds the primary duplicate path to the scene detail. |
| 31 | + |
| 32 | +### Requirements |
| 33 | + |
| 34 | +`pip install --upgrade stashapp-tools` |
| 35 | +`pip install pyYAML` |
| 36 | +`pip install Send2Trash` |
| 37 | + |
| 38 | +### Installation |
| 39 | + |
| 40 | +- Follow **Requirements** instructions. |
| 41 | +- In the stash plugin directory (C:\Users\MyUserName\.stash\plugins), create a folder named **DupFileManager**. |
| 42 | +- Copy all the plugin files to this folder.(**C:\Users\MyUserName\\.stash\plugins\DupFileManager**). |
| 43 | +- Click the **[Reload Plugins]** button in Stash->Settings->Plugins->Plugins. |
| 44 | + |
| 45 | +That's it!!! |
| 46 | + |
| 47 | +### Options |
| 48 | + |
| 49 | +- Options are accessible in the GUI via Settings->Plugins->Plugins->[DupFileManager]. |
| 50 | +- More options available in DupFileManager_config.py. |
0 commit comments