v0.3.2 — Allow MP4 container for DarkPeers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name UNIT3D Mod Queue Helper — DarkPeers
|
||||
// @namespace https://gitea.computerliebe.org/Procuria/dp-modq-helper
|
||||
// @version 0.3.1
|
||||
// @version 0.3.2
|
||||
// @description Quality-gate checks for DarkPeers — extended moderation rules, title validation, SRRDB & Prowlarr integrations
|
||||
// @author TQG Contributors
|
||||
// @updateURL https://gitea.computerliebe.org/Procuria/dp-modq-helper/raw/branch/main/modq-helper-darkpeers.user.js
|
||||
@@ -2377,16 +2377,17 @@ const k = {
|
||||
message: "No video files detected in file list",
|
||||
details: null
|
||||
};
|
||||
const o = a.filter(r => !r.toLowerCase().endsWith(".mkv"));
|
||||
const allowedExts = [".mkv", ".mp4"];
|
||||
const o = a.filter(r => !allowedExts.some(ext => r.toLowerCase().endsWith(ext)));
|
||||
return o.length === 0 ? {
|
||||
status: "pass",
|
||||
message: `MKV container verified (${a.length} video file${a.length>1?"s":""})`,
|
||||
message: `Container verified (${a.length} video file${a.length>1?"s":""})`,
|
||||
details: null
|
||||
} : {
|
||||
status: "fail",
|
||||
message: `Non-MKV container detected: ${[...new Set(o.map(r=>r.split(".").pop().toUpperCase()))].join(", ")}`,
|
||||
message: `Unsupported container detected: ${[...new Set(o.map(r=>r.split(".").pop().toUpperCase()))].join(", ")}`,
|
||||
details: {
|
||||
expected: "MKV container for all non-Full Disc releases",
|
||||
expected: "MKV or MP4 container for all non-Full Disc releases",
|
||||
found: o.join(", ")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user