Files
Axter-Stash/plugins/DupFileManager/DupFileManager_report_config.py
David Maisonave e768959934 1.1.6 beta
### 1.1.6 beta
Note: This is a beta version, because not all of the javascript ajax functions have been tested yet.
- Added the following to [**Advance Duplicate File Menu**]
  - Scene cover preview image option
  - Webp preview video option
- Fix json string return for all calls made from javascript.
- Added DupFileManagerPyVer field to json when called from javascript.
- When deleting scene using Report, replaced completion prompt with scene background set to gray.
- In Report, when rename occurs, the scene gets renamed inline, without having to reload report page.
- Added GetRunPluginOperationJson to DupFileManager_report.js which allows result to safely be converted to json. If fails, it gracefully returns null.
2025-01-14 14:07:26 -05:00

57 lines
2.8 KiB
Python

# Description: This is a Stash plugin which manages duplicate files.
# By David Maisonave (aka Axter) Jul-2024 (https://www.axter.com/)
# Get the latest developers version from following link:
# https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/DupFileManager
# HTML Report Options **************************************************
report_config = {
# Paginate HTML report. Maximum number of results to display on one page, before adding (paginating) an additional page.
"htmlReportPaginate" : 100,
# If enabled, report displays the scene cover as a preview image
"htmlIncludeCoverImage" : False,
# If enabled, report displays Webp as a preview image
"htmlIncludeWebpPreview" : False,
# If enabled, report displays an image preview similar to sceneDuplicateChecker
"htmlIncludeImagePreview" : False,
"htmlImagePreviewSize" : 140,
"htmlImagePreviewPopupSize" : 600,
# If enabled, report displays a video preview
"htmlIncludeVideoPreview" : True,
"htmlVideoPreviewWidth" : 160,
"htmlVideoPreviewHeight" : 120,
# The number of seconds in time difference for supper highlight on htmlReport
"htmlHighlightTimeDiff" : 3,
# If enabled, report displays stream instead of preview for video
"streamOverPreview" : False, # This option works in Chrome, but does not work very well on firefox.
# Supper highlight for details with higher resolution or duration
"htmlSupperHighlight" : "yellow",
# Text color for details with different resolution, duration, size, bitrate,codec, or framerate
"htmlDetailDiffTextColor" : "violet", # Candid colors Magenta Tomato Violet
# Lower highlight for details with slightly higher duration
"htmlLowerHighlight" : "nyanza",
# The report background color
"htmlReportBackgroundColor" : "#f0f5f5",
# The report text color
"htmlReportTextColor" : "black",
# HTML report postfiox, after table listing
"htmlReportPostfix" : "\n</div></body></html>",
# HTML report table
"htmlReportTable" : "<table style=\"width:100%\">",
# HTML report table row
"htmlReportTableRow" : "<tr>",
# HTML report table header
"htmlReportTableHeader" : "<th>",
# HTML report table data
"htmlReportTableData" : "<td>",
# HTML report video preview
"htmlReportVideoPreview" : "controls", # Alternative option "autoplay loop controls" or "autoplay controls"
# Name of the HTML file to create
"htmlReportName" : "DuplicateTagScenes.html",
# If enabled, create an HTML report when tagging duplicate files
"createHtmlReport" : True,
# To use a private or an alternate site to access report and advance menu
"remoteReportDirURL" : "https://stash.axter.com/1.1/",
# To use a private or an alternate site to access jquery, easyui, and jquery.prompt
"js_DirURL" : "https://www.axter.com/js/",
}