Saturday Mornings ident (0.108.69)

Approved by Paul on 6 November 2026: a 4-second block ident as the weekend
cartoons begin on Heroes, Orbit X and Rewind (design/channels/
build-saturday-mornings.py, EffectCraft), with a synthesised sting; Sundays
read SUNDAY MORNINGS. The key names the ident only; booking is unchanged.
Also lets the adb-only install check copy the library catalogue out
(read-only) to check new channels' titles.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:09:20 +00:00
co-authored by Claude Opus 5.5
parent 887a1d91d3
commit d252811f83
10 changed files with 37 additions and 13 deletions
@@ -19,8 +19,9 @@ class PresentationTest {
@Test fun everyApprovedBlockKeyHasItsIdent() {
// Takeovers (6 November 2026) have their own drawn ident instead of a filmed one.
val keys = SmartChannels.flatMap { it.dayParts }.map { it.key }.filter { it.isNotEmpty() }.toSet() - Takeovers.map { it.key }.toSet()
// Riot 3, After Dark 3, Horror, Gold, Three, Vortex 4 (Movie Night, Prime, Afterburn and its premiere), Orbit 2 2, Ring X 7 (six nights and PPV), Terra.
assertEquals(23, keys.size)
// Riot 3, After Dark 3, Horror, Gold, Three, Vortex 4 (Movie Night, Prime, Afterburn and its premiere), Orbit 2 2, Ring X 7 (six nights and PPV), Terra,
// and Saturday Mornings, shared by Heroes, Orbit X and Rewind.
assertEquals(24, keys.size)
assertEquals(emptySet<String>(), keys - BlockIdents.keys)
assertTrue(keys.all { PRESENTATION_KEY.matches(it) })
}
@@ -115,4 +116,12 @@ class PresentationTest {
val long = "NJPW Dominion 6.9 in Osaka-jo Hall and a very long subtitle that runs on"
assertEquals(long, eventTitle(broadcast("ringx.ppv", long)))
}
@Test fun saturdayMorningsReadsSundayOnSundays() {
val sunday = java.time.LocalDate.of(2026, 11, 8).atTime(7, 0).atZone(java.time.ZoneId.systemDefault()).toInstant().toEpochMilli()
val saturday = sunday - 24 * 60 * 60_000L
fun at(ms: Long, key: String) = SampleBroadcast(ScheduledMedia(SampleItem("Show / S1 E1 / One", "Episode", 30, "", "i", 30 * 60_000L), "c", 30 * 60_000L), ms, key)
assertEquals(R.raw.block_saturday_mornings, blockIdentFor(at(saturday - 1, ""), at(saturday, SATURDAY_MORNINGS), true)?.video)
assertEquals(R.raw.block_sunday_mornings, blockIdentFor(at(sunday - 1, ""), at(sunday, SATURDAY_MORNINGS), true)?.video)
}
}