v0.3.2 — Allow MP4 container for DarkPeers

This commit is contained in:
2026-04-05 23:46:36 +02:00
parent c3593a0c9d
commit c86f67a592
2 changed files with 12 additions and 5 deletions

View File

@@ -4,6 +4,12 @@ All notable changes to the DarkPeers Mod Queue Helper will be documented in this
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
## [0.3.2] - 2026-04-05
### Fixed
- **Container format check** — allow MP4 alongside MKV for non-Full Disc releases (DarkPeers does not enforce MKV-only)
## [0.3.1] - 2026-04-05
### Fixed

View File

@@ -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(", ")
}
}