Allow short Viaplay highlight clips (lower slate threshold to 15s).
This commit is contained in:
parent
24051ed48f
commit
f20b29362e
2 changed files with 3 additions and 3 deletions
|
|
@ -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(),
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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?`
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue