From f20b29362ee54d6cbc82871d9cc3609c8d6a99c1 Mon Sep 17 00:00:00 2001 From: Jos Vooges | STH Date: Thu, 24 Sep 2026 00:03:29 +0200 Subject: [PATCH] Allow short Viaplay highlight clips (lower slate threshold to 15s). --- apps/master-api/src/app.ts | 2 +- apps/master-api/src/viaplay/client.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/master-api/src/app.ts b/apps/master-api/src/app.ts index b631f67..fcacdef 100644 --- a/apps/master-api/src/app.ts +++ b/apps/master-api/src/app.ts @@ -106,7 +106,7 @@ async function main() { return { status: "ok", service: "master-api", - version: "1.0.3-vod-assert-v6", + version: "1.0.3-vod-assert-v6b", lastVodPlay: getLastVodPlay(), }; }); diff --git a/apps/master-api/src/viaplay/client.ts b/apps/master-api/src/viaplay/client.ts index 9b79c2c..5c76faf 100644 --- a/apps/master-api/src/viaplay/client.ts +++ b/apps/master-api/src/viaplay/client.ts @@ -958,8 +958,8 @@ function assertVodPlayMatchesGuid( } const durationMs = Number(body.duration); if (Number.isFinite(durationMs) && durationMs > 0) { - // Korte slate / bumper i.p.v. echte samenvatting - if (wantsClip && durationMs < 60_000) { + // Ultrashorte bumper/slate i.p.v. echte clip (highlights mogen ~30–60s zijn) + if (wantsClip && durationMs < 15_000) { throw new Error( `Viaplay gaf te korte stream (${Math.round(durationMs / 1000)}s) — promo-slate?` );