From 7894deaa4c564b8c37698377dcd629624a1fe42b Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Tue, 30 Dec 2025 18:15:50 -0600 Subject: [PATCH] allow string values for count instruction in sequential schedules --- CHANGELOG.md | 1 + ErsatzTV/Resources/sequential-schedule-import.schema.json | 2 +- ErsatzTV/Resources/sequential-schedule.schema.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91e42d73d..4261fc412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix high CPU when errors are displayed; errors will now work ahead before throttling to realtime, similar to primary content - Fix startup error caused by duplicate smart collection names (and no longer allow duplicate smart collection names) - Fix erroneous downgrade health check failure with some installations that use MariaDB +- Sequential schedules: fix `count` instruction validation to accept integer (constant) or string (expression) ### Changed - No longer round framerate to nearest integer when normalizing framerate diff --git a/ErsatzTV/Resources/sequential-schedule-import.schema.json b/ErsatzTV/Resources/sequential-schedule-import.schema.json index 2ea0480f0..6ae801007 100644 --- a/ErsatzTV/Resources/sequential-schedule-import.schema.json +++ b/ErsatzTV/Resources/sequential-schedule-import.schema.json @@ -191,7 +191,7 @@ "countInstruction": { "type": "object", "properties": { - "count": { "type": "integer" }, + "count": { "type": ["integer", "string"] }, "content": { "type": "string" }, "custom_title": { "type": "string" }, "filler_kind": { "$ref": "#/$defs/enums/filler_kind" }, diff --git a/ErsatzTV/Resources/sequential-schedule.schema.json b/ErsatzTV/Resources/sequential-schedule.schema.json index 34304c5a6..004933eca 100644 --- a/ErsatzTV/Resources/sequential-schedule.schema.json +++ b/ErsatzTV/Resources/sequential-schedule.schema.json @@ -242,7 +242,7 @@ "countInstruction": { "type": "object", "properties": { - "count": { "type": "integer" }, + "count": { "type": ["integer", "string"] }, "content": { "type": "string" }, "custom_title": { "type": "string" }, "filler_kind": { "$ref": "#/$defs/enums/filler_kind" },