# 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
#_ToDo:__ Add jquery.prompt.js reference to this code by downloading it to axter.com site, and referencing it from the report remotely.
# Use it to have a prompt with a don't ask me again checkbox.
# Get it from following link: https://github.com/MrSwitch/jquery.prompt.js
# See test code in following link: http://adodson.com/jquery.prompt.js/#function-callback
# HTML Report Options **************************************************
report_config = {
# If enabled, create an HTML report when tagging duplicate files
"createHtmlReport" : True,
# 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.
# If enabled, report displays an image preview similar to sceneDuplicateChecker
"htmlIncludeImagePreview" : False,
"htmlImagePreviewPopupSize" : 600,
# Name of the HTML file to create
"htmlReportName" : "DuplicateTagScenes.html",
# HTML report prefix, before table listing
"htmlReportPrefix" : """
\n""",
# HTML report postfiox, after table listing
"htmlReportPostfix" : "\n",
# HTML report table
"htmlReportTable" : "
",
# HTML report table row
"htmlReportTableRow" : "
",
# HTML report table header
"htmlReportTableHeader" : "
",
# HTML report table data
"htmlReportTableData" : "
",
# HTML report video preview
"htmlReportVideoPreview" : "width='160' height='120' controls", # Alternative option "autoplay loop controls" or "autoplay controls"
# The number off seconds in time difference for supper highlight on htmlReport
"htmlHighlightTimeDiff" : 3,
# Supper highlight for details with higher resolution or duration
"htmlSupperHighlight" : "yellow",
# Lower highlight for details with slightly higher duration
"htmlLowerHighlight" : "nyanza",
# Text color for details with different resolution, duration, size, bitrate,codec, or framerate
"htmlDetailDiffTextColor" : "red",
# Paginate HTML report. Maximum number of results to display on one page, before adding (paginating) an additional page.
"htmlReportPaginate" : 100,
}