Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DupFileManager 0.1.9 #467

Merged
merged 45 commits into from
Nov 23, 2024
Merged

DupFileManager 0.1.9 #467

merged 45 commits into from
Nov 23, 2024

Conversation

David-Maisonave
Copy link
Contributor

Added the following features:

  • Duplicate File Report which displays duplicates and has buttons to perform individual deletion, copy, rename, metadata copy, flagging, tagging, and more.
  • Tools UI option which allows access to the new Duplicate File Report, and additional Tools and Utilities options.
  • Advance menu option.
    Screenshot 2024-11-22 145139
    • Delete only specially tagged duplicates in blacklist path.
    • Delete duplicates with specified file path.
    • Delete duplicates with specific string in File name.
    • Delete duplicates with specified file size range.
    • Delete with specified duration range.
    • Delete with resolution range.
    • Delete duplicates having specified tags.
    • Delete duplicates with specified rating.
    • Delete duplicates with any of the above combinations.
  • Bottom extended portion of the Advanced Menu screen.
    • Screenshot 2024-11-22 232005

Where's was an (if not) condition which should have been an (if) condition. This caused issues when renaming a file without populating the title field and with an associated performer.
Added new plugin ChangeFileMonitor.
Made following changes to RenameFile plugin.
	Added fields galleries, resolution, and width.
	Fixed bug associated with studio.
	Added logic to limit the log file size.
	Added logic to only get [Change success] logging when no errors occurs.
	Change default fields to include studio.
	Added postfix styles, which was mainly needed to properly format resolution field, but can be used for the other fields.
	Consolidated [Include Existing Key Field] options into one option.
	Cleaned up code and updated version
Added new plugin ChangeFileMonitor.
Made following changes to RenameFile plugin.
	Added fields galleries, resolution, and width.
	Fixed bug associated with studio.
	Added logic to limit the log file size.
	Added logic to only get [Change success] logging when no errors occurs.
	Change default fields to include studio.
	Added postfix styles, which was mainly needed to properly format resolution field, but can be used for the other fields.
	Consolidated [Include Existing Key Field] options into one option.
	Cleaned up code and updated version
Removed unused UI variable endpoint.
Added logic that allows ChangeFileMonitor to run as a script.
Updated README.md file to explain how to run it as a script.
Can start FileMonitor from Stash UI as a service.
Stop FileMonitor from the UI.
Scheduler service for multiple UI task.
Scheduler service for plugins.
UI option to trim backup DB files.
Config file option to exclude paths.
Config file option to only include paths.
Config file option to only include specified file types.

Very minor changes to RenameFile plugin.
1. Fixed bug that added duplicate resolution, width, height , scene_date, video_codec, and frame_rate when title is not populated.
2. Added excludeTags field, and pre-populated it with DuplicateMarkForDeletion and DuplicateWhitelistFile to avoid conflicts with up coming plugin DupFileManager.
Added API Key logic to allow FileMonitor to work in service mode when user has configured a Stash username and password.
To slim down the main config, moved self_unit_test and task_examples to their own configuration files.
Added more self_unit_test, and a selfUnitTest activation field that is normally false.
When field is true, it turns on the task for unit testing.
Change default rename using Move, in order to avoid access issues when scene is being played.
100's of file changes at the same time caused FileMonitor to run many dozens of scan jobs.
Added logic to have FileMonitor delay new scan jobs while last scan job is still running.
Separated unit testing into two parts.
Increase max log file size.
Set status logging to debug level.
Added UI option to enable DupFileManager delete duplicate task  in the scheduler.
Added "every" option for every day of the week in the scheduler.
Added scheduler option to start plugin without the Task Scheduler.
Changed the format for plugins in the scheduler.
Fixed issue with Studio triggering folder being created on rename.
Integrated changes to use StashPluginHelper class, and stream line the code.
Put rename back as default method over move.
Removed functions which are already included in stashapi and StashPluginHelper.
Added option to avoid "Delete Tagged Duplicates" without turnOnSchedulerDeleteDup enabled.
@DogmaDragon
Copy link
Contributor

Can you remove the dev files?

@David-Maisonave
Copy link
Contributor Author

Good catch. Removed.

@David-Maisonave
Copy link
Contributor Author

Fixed prettier issues.

@DogmaDragon DogmaDragon merged commit 2910de6 into stashapp:main Nov 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants