Add configurable skip delay (0-30s) for Skip Intro and Skip Credits

This commit is contained in:
Justin Oro
2026-09-02 16:50:04 -07:00
parent 0f1f2a309e
commit b2082d0624
9 changed files with 333 additions and 21 deletions
+9 -1
View File
@@ -1,9 +1,17 @@
const DEFAULT_SETTINGS = {
plexUrl: "https://app.plex.tv",
skipIntro: true,
skipCredits: true
skipCredits: true,
introDelaySeconds: 0,
creditsDelaySeconds: 0
};
function clampDelaySeconds(value) {
const num = Number(value);
if (!Number.isFinite(num)) return 0;
return Math.min(30, Math.max(0, Math.round(num)));
}
function normalizePlexUrl(input) {
let value = (input || "").trim();
if (!value) return DEFAULT_SETTINGS.plexUrl;