forked from Github/Axter-Stash
- Moved link to [**Advance Duplicate File Menu**] to https://stash.axter.com/1.1.2/advance_options.html - This allows the Advance Menu to be accessed by Chrome, Edge and other Chrome based browsers which don't allow accessing local links from a non-local URL. - Added additional warnings when detecting Chrome based browsers and when moving from non-local link to local link. - Moved htmlReportPrefix field from the DupFileManager_report_config.py to DupFileManager_report_header. - This was needed because Python on Docker gives an error when using tripple quoted strings. - Made advance_options.html HTML5 compliance. - Added additional details returned by getLocalDupReportPath to include (IS_DOCKER, ReportUrl, AdvMenuUrl, apikey, & LocalDir).
49 lines
2.4 KiB
Python
49 lines
2.4 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 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,
|
|
}
|