0.95.1: when a programme's file ends before its slot, play and hold the channel ident (NEXT AT …) instead of a black screen
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,15 @@ class IdentTest {
|
||||
assertEquals(IDENT_STING_MS, identLength(999))
|
||||
}
|
||||
|
||||
@Test fun aFileStoppingWellBeforeItsSlotEndsCountsAsEndingEarly() {
|
||||
// The 3 November Night Garden: booked to 19:28:06, its file stopped at 19:24:54.
|
||||
val slotEnd = 26 * minute
|
||||
assertTrue(finishedEarly(slotEnd - 192_000, slotEnd))
|
||||
// Running out in the last moments is just the credits, which the ident covers anyway.
|
||||
assertFalse(finishedEarly(slotEnd - EARLY_END_GRACE_MS, slotEnd))
|
||||
assertFalse(finishedEarly(slotEnd + 1_000, slotEnd))
|
||||
}
|
||||
|
||||
@Test fun everyChannelHasItsOwnIdent() {
|
||||
SmartChannels.map { it.number }.filter { identVideo(it) == null }.let { assertEquals(emptyList<Int>(), it) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user