Added setting for Anamorphic video processing
This commit is contained in:
parent
fdd4a31f57
commit
14a0e29c92
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name AnimeBytes Mediainfo Improvements
|
||||
// @author WeebDataHoarder
|
||||
// @version 1.25.0
|
||||
// @version 1.26.1
|
||||
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
|
||||
// @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
|
||||
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
|
||||
|
@ -408,7 +408,7 @@ function extractFromMediainfo(tags, mediainfo, warnings, fileName, fileList, sou
|
|||
let ar = width / height;
|
||||
|
||||
//Handle anamorphic video
|
||||
if("display_aspect_ratio" in video){
|
||||
if("display_aspect_ratio" in video && settings.getSetting("handleAnamorphicVideo")){
|
||||
let params = video.display_aspect_ratio.replace("/", ":").split(":");
|
||||
if(params.length === 2){
|
||||
let dar = params[0] / params[1];
|
||||
|
@ -1407,6 +1407,7 @@ settings.addSetting("openFormats", "Label Open Formats", "Entries that are compo
|
|||
settings.addSetting("showContainerVersions", "Show Container Versions", "Display container versions. Currently implemented for Matroska / WebM", "bool", false);
|
||||
settings.addSetting("showEncodingDetails", "Show Encoding Details", "Display encoding details such as encoder, mode, CRF, and bitrate", "bool", true);
|
||||
settings.addSetting("showAudioDetails", "Show Audio Details", "Display extra audio details such as bit-depth, bitrate.", "bool", false);
|
||||
settings.addSetting("handleAnamorphicVideo", "Handle Anamorphic Video", "Use Display Aspect Ratio information to calculate display resolution.", "bool", true);
|
||||
settings.addSetting("regexpFilter", "RegExp Filter", "Any entry that matches one of these RegExp (without delimiters) will be filtered out. Can enter a different one per line. Empty to disable", "text", "");
|
||||
settings.addSetting("extraStyles", "CSS Styles", "Extra CSS styles to add to Torrent pages. Empty to disable. One group entry per line.", "text", "");
|
||||
settings.addSetting("script_deliciousCompatMode", "Enable Delicious Compatibility", "Enable workarounds to make output compatible with AnimeBytes Delicious user scripts Bundle", "bool", true);
|
||||
|
|
Loading…
Reference in a new issue