From c86f67a592c9fd2917576bf4285dc5a2c56d58a3 Mon Sep 17 00:00:00 2001 From: Procuria Date: Sun, 5 Apr 2026 23:46:36 +0200 Subject: [PATCH] =?UTF-8?q?v0.3.2=20=E2=80=94=20Allow=20MP4=20container=20?= =?UTF-8?q?for=20DarkPeers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ modq-helper-darkpeers.user.js | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a8bf3..8396bf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/modq-helper-darkpeers.user.js b/modq-helper-darkpeers.user.js index 92085b3..f66337b 100644 --- a/modq-helper-darkpeers.user.js +++ b/modq-helper-darkpeers.user.js @@ -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(", ") } }