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] plugin updated to version 1.0.0 #470

Merged
merged 49 commits into from
Nov 29, 2024

Commits on Jul 23, 2024

  1. Fixed bug associated with rename without title field populated

    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.
    David-Maisonave committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    84d3b7f View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. Added ChangeFileMonitor and added more features to RenameFile

    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
    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    1cee248 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3061e26 View commit details
    Browse the repository at this point in the history
  3. Added plugin ChangeFileMonitor and updated RenameFile plugin

    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
    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    c99d359 View commit details
    Browse the repository at this point in the history
  4. Added clean option

    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    81a83bb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f34a382 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e1133dc View commit details
    Browse the repository at this point in the history
  7. Update renamefile.yml

    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    789e5d0 View commit details
    Browse the repository at this point in the history
  8. Fixing format

    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    ac708ad View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0bd49ca View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1e4f9d3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a9b73d6 View commit details
    Browse the repository at this point in the history
  12. Removed unused UI variable endpoint

    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.
    David-Maisonave committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    ec379fe View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    bf3bfe4 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Configuration menu
    Copy the full SHA
    ff65f8c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bff74c View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Added issue templates

    David-Maisonave committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    e5d8f82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bce5318 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Added run as a service UI option and scheduler option

    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.
    David-Maisonave committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    971d0ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdea121 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e847bdc View commit details
    Browse the repository at this point in the history
  4. ver change

    David-Maisonave committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    bdc12bd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d2f575 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    212900d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44e7948 View commit details
    Browse the repository at this point in the history
  3. Fixed bug that was adding duplicate resolution

    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.
    David-Maisonave committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    90b30a4 View commit details
    Browse the repository at this point in the history
  4. Added API Key option

    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.
    David-Maisonave committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    131f3eb View commit details
    Browse the repository at this point in the history
  5. Change default rename using Move

    Change default rename using Move, in order to avoid access issues when scene is being played.
    David-Maisonave committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    f02e668 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Added logic to stop running multiple scan jobs.

    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.
    David-Maisonave committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    444a569 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43acfe1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af2be30 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. FileMonitor updates

    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.
    David-Maisonave committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    688f8c0 View commit details
    Browse the repository at this point in the history
  2. RenameFile Updates

    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.
    David-Maisonave committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a667d87 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf6147b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    739273a View commit details
    Browse the repository at this point in the history
  5. prettier changes

    David-Maisonave committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    41031c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d7ebfb0 View commit details
    Browse the repository at this point in the history
  7. Update README.md

    David-Maisonave committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    b4e59e1 View commit details
    Browse the repository at this point in the history
  8. Added option to avoid "Delete Tagged Duplicates"

    Added option to avoid "Delete Tagged Duplicates" without turnOnSchedulerDeleteDup enabled.
    David-Maisonave committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    c4be9c2 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2024

  1. Configuration menu
    Copy the full SHA
    ee53864 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b34fb92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1805721 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    78dfa06 View commit details
    Browse the repository at this point in the history
  5. prettier changes

    David-Maisonave committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    b216d09 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0ac917d View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Upgraded to version 1.0.0; See description for details

    ### 0.2.0
    - For report, added logic to transfer option settings **[Disable Complete Confirmation]** and **[Disable Delete Confirmation]** when paginating.
    - Fixed minor bug in advance_options.html for GQL params.
    ### 0.2.1
    - Added logic to have reports and advanced menu to work with Stash settings requiring a password by adding API-Key as param argument for advance menu, and adding API-Key as variable in reports.
    - When **[Advance Tag Menu]** is called from reports, it's given both the GQL URL and the apiKey on the URL param, which allows advance menu to work with non-standard URL's and with API-Key.
    ### 0.2.2
    - Added dropdown menu logic to Advance Menu and reports.
    - Added Graylist deletion option to Advance Menu.
    - Report option to clear all flags from report.
    - Report option to clear all (_DuplicateMarkForDeletion_?) tag from all scenes.
    - Report option to delete from Stash DB all scenes with missing files in file system.
    - Added popup tag list to report which list all tags associated with scene.
    - Added popup performer list to report which list all performers associated with scene.
    - Added popup gallery list to report which list all galleries associated with scene.
    - Added popup group list to report which list all groups associated with scene.
    - After merging tags in report, the report gets updated with the merged scene metadata.
    - Added graylist deletion option to [**Advance Duplicate File Deletion Menu**].
    - Added pinklist option to Settings->Plugins->Plugins and to [**Advance Duplicate File Deletion Menu**]
      - The pinklist is only used with the [**Advance Duplicate File Deletion Menu**], and it's **NOT** used in the primary process to selected candidates for deletion.
    - Advance Menu now works with non-tagged scenes that are in the current report.
    ### 1.0.0
    - Consolidated buttons and links on report into dropdown buttons.
    - On report, added dropdown menu options for flags.
    - Rename Tools-UI advance duplicate tagged menu to [**Advance Duplicate File Deletion Menu**]
    - When [**Advance Duplicate File Deletion Menu**] completes report, gives user prompt to open the report in browser.
    - Added performance enhancement for removing (clearing) duplicate tags from all scenes by using SQL call.
    - Added option to report to delete files that do not exist by duplicate candidates in report, as well as by tagged files.
    - Added logic to disable scene in report if deleted by [**Advance Duplicate File Deletion Menu**]. Note: Requires a refresh.
    - Added report option to delete by flags set on the report.
    ### 1.0.0.1
    - Fixed bug with report delete scene request.
    ### 1.0.0.2
    - In the report, made icon colors for tags, performers, galleries, and groups with different colors if they don't match. In other words, use different color icons if **candidate to delete** doesn't match **duplicate to keep** associated icon data.
      - If data for associated icon are the same, then both icons are black or blue (the default color).
      - If [**duplicate to keep**] is missing data that is in [**candidate to delete**], than [**candidate to delete**] gets a yellow icon.
      - If [**candidate to delete**] is missing data that is in [**duplicate to keep**], than [**duplicate to keep**] gets a pink icon.
    ### 1.0.0.3
    - Added option on report to merge all metadata missing in [**Duplicate to Keep**] files.
    - Added cookies to report so as to remember user options for Disable Complete Confirmation **[Disable Complete Confirmation]** and **[Disable Delete Confirmation]**.
      - This change was needed because sometimes the browser refuse to open local URL's with params on the URL.
      - Using cookies also allows check options status to stay the same after refresh.
    - Added code to [**Advance Duplicate File Deletion Menu**] to delete based on flags.
    David-Maisonave committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    fdb786e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46edadd View commit details
    Browse the repository at this point in the history
  3. Upgraded to version 1.0.0; See description for details

    ### 0.2.0
    - For report, added logic to transfer option settings **[Disable Complete Confirmation]** and **[Disable Delete Confirmation]** when paginating.
    - Fixed minor bug in advance_options.html for GQL params.
    ### 0.2.1
    - Added logic to have reports and advanced menu to work with Stash settings requiring a password by adding API-Key as param argument for advance menu, and adding API-Key as variable in reports.
    - When **[Advance Tag Menu]** is called from reports, it's given both the GQL URL and the apiKey on the URL param, which allows advance menu to work with non-standard URL's and with API-Key.
    ### 0.2.2
    - Added dropdown menu logic to Advance Menu and reports.
    - Added Graylist deletion option to Advance Menu.
    - Report option to clear all flags from report.
    - Report option to clear all (_DuplicateMarkForDeletion_?) tag from all scenes.
    - Report option to delete from Stash DB all scenes with missing files in file system.
    - Added popup tag list to report which list all tags associated with scene.
    - Added popup performer list to report which list all performers associated with scene.
    - Added popup gallery list to report which list all galleries associated with scene.
    - Added popup group list to report which list all groups associated with scene.
    - After merging tags in report, the report gets updated with the merged scene metadata.
    - Added graylist deletion option to [**Advance Duplicate File Deletion Menu**].
    - Added pinklist option to Settings->Plugins->Plugins and to [**Advance Duplicate File Deletion Menu**]
      - The pinklist is only used with the [**Advance Duplicate File Deletion Menu**], and it's **NOT** used in the primary process to selected candidates for deletion.
    - Advance Menu now works with non-tagged scenes that are in the current report.
    ### 1.0.0
    - Consolidated buttons and links on report into dropdown buttons.
    - On report, added dropdown menu options for flags.
    - Rename Tools-UI advance duplicate tagged menu to [**Advance Duplicate File Deletion Menu**]
    - When [**Advance Duplicate File Deletion Menu**] completes report, gives user prompt to open the report in browser.
    - Added performance enhancement for removing (clearing) duplicate tags from all scenes by using SQL call.
    - Added option to report to delete files that do not exist by duplicate candidates in report, as well as by tagged files.
    - Added logic to disable scene in report if deleted by [**Advance Duplicate File Deletion Menu**]. Note: Requires a refresh.
    - Added report option to delete by flags set on the report.
    ### 1.0.0.1
    - Fixed bug with report delete scene request.
    ### 1.0.0.2
    - In the report, made icon colors for tags, performers, galleries, and groups with different colors if they don't match. In other words, use different color icons if **candidate to delete** doesn't match **duplicate to keep** associated icon data.
      - If data for associated icon are the same, then both icons are black or blue (the default color).
      - If [**duplicate to keep**] is missing data that is in [**candidate to delete**], than [**candidate to delete**] gets a yellow icon.
      - If [**candidate to delete**] is missing data that is in [**duplicate to keep**], than [**duplicate to keep**] gets a pink icon.
    ### 1.0.0.3
    - Added option on report to merge all metadata missing in [**Duplicate to Keep**] files.
    - Added cookies to report so as to remember user options for Disable Complete Confirmation **[Disable Complete Confirmation]** and **[Disable Delete Confirmation]**.
      - This change was needed because sometimes the browser refuse to open local URL's with params on the URL.
      - Using cookies also allows check options status to stay the same after refresh.
    - Added code to [**Advance Duplicate File Deletion Menu**] to delete based on flags.
    David-Maisonave committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    92307c5 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Configuration menu
    Copy the full SHA
    85ec688 View commit details
    Browse the repository at this point in the history