Orbit Signature, Orbit Unscripted and Orbit Christmas (0.108.71)
Paul, 6 November 2026, line-ups approved (docs/new-channels-signature- unscripted-christmas.md) and looks drawn from his concept board: 109 Signature, award-winning drama in four day parts; 110 Unscripted, reality in five; 310 Orbit Christmas, Christmas films by day part, in season from November to December and gone from the guide and Home the rest of the year. Christmas's ident is the Blender village with the big tree and its gold star. Each is off until switched on in Settings › Channels. Also steadies a phone-link test that sometimes found its port still held. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -164,7 +164,7 @@ class ChannelPresetsTest {
|
||||
listOf(612, 613, 306, 303, 304, 302, 307, 301).forEach { assertNotNull(SmartChannels.first { channel -> channel.number == it }.filmRestMs) }
|
||||
assertEquals(ChannelCategory.Sport, ChannelBrands.forNumber(401)!!.category)
|
||||
// Kitchen, Home and Play joined on 6 November 2026.
|
||||
assertEquals(33, SmartChannels.size)
|
||||
assertEquals(36, SmartChannels.size)
|
||||
}
|
||||
|
||||
@Test fun ringXKeepsItsWeeknightsAndFallsBackToTheVault() {
|
||||
@@ -195,7 +195,7 @@ class ChannelPresetsTest {
|
||||
|
||||
@Test fun everySmartChannelIsBrandedAndNumberedAfterTheMove() {
|
||||
SmartChannels.forEach { assertNotNull("${it.name} has no brand at ${it.number}", ChannelBrands.forNumber(it.number)) }
|
||||
assertEquals(OldChannelNumbers.values.toSet() - DRIVE_IN_NUMBER + 101 + TOTS_NUMBER + setOf(108, 205, 206), SmartChannels.map { it.number }.toSet())
|
||||
assertEquals(OldChannelNumbers.values.toSet() - DRIVE_IN_NUMBER + 101 + TOTS_NUMBER + setOf(108, 109, 110, 205, 206, CHRISTMAS_NUMBER), SmartChannels.map { it.number }.toSet())
|
||||
}
|
||||
|
||||
@Test fun kitchenHomeAndPlayAreBrandedInTheirBlocks() {
|
||||
@@ -256,4 +256,17 @@ class ChannelPresetsTest {
|
||||
SmartChannels.filter { it.filmRestMs != null && it.number != AFTER_DARK_NUMBER }.forEach { assertEquals(it.searches.size, it.seriesCount) }
|
||||
assertTrue(SmartChannels.first { it.number == 302 }.searches.size >= 100)
|
||||
}
|
||||
|
||||
@Test fun signatureUnscriptedAndChristmas() {
|
||||
assertEquals("Orbit Signature", ChannelBrands.forNumber(109)!!.displayName); assertEquals(ChannelCategory.Movies, ChannelBrands.forNumber(CHRISTMAS_NUMBER)!!.category)
|
||||
// Orbit Christmas is on from November to December, and gone the rest of the year.
|
||||
val zone = java.time.ZoneId.of("Europe/London")
|
||||
fun at(m: Int, d: Int) = java.time.LocalDate.of(2026, m, d).atStartOfDay(zone).toInstant().toEpochMilli()
|
||||
assertTrue(inSeason(CHRISTMAS_NUMBER, at(11, 6), zone)); assertTrue(inSeason(CHRISTMAS_NUMBER, at(12, 31), zone))
|
||||
assertFalse(inSeason(CHRISTMAS_NUMBER, at(1, 1), zone)); assertFalse(inSeason(CHRISTMAS_NUMBER, at(10, 31), zone))
|
||||
assertTrue(inSeason(109, at(1, 1), zone))
|
||||
// No show another channel carries, so each keeps its identity: only Band of Brothers, which Odyssey keeps listed but in no block.
|
||||
val others = SmartChannels.filter { it.number !in setOf(109, 110, CHRISTMAS_NUMBER) }.flatMap { it.searches }.toSet() - "Band of Brothers"
|
||||
assertTrue((SignatureShows + UnscriptedShows).none { it in others })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,13 @@ class PhoneLinkTest {
|
||||
PhoneLink.pinNeeded = { false }
|
||||
PhoneLink.handler = PhoneHandler(ChannelMaker({ d, _, _ -> listOf(Suggestion("x1", "The X-Files", 1993, "Series", "", "Science Fiction, 1990s")).filter { d.isNotBlank() } },
|
||||
{ emptyList() }, { c, s -> made = c to s; "${c.name} is ready" }, { emptyList() }), { false }, { watched += it })
|
||||
PhoneLink.start()
|
||||
// The port can still be held for a moment by the test before (it failed now and then with Connection refused):
|
||||
// try again until the link is listening.
|
||||
repeat(40) {
|
||||
PhoneLink.start()
|
||||
if (runCatching { java.net.Socket("127.0.0.1", port).close() }.isSuccess) return
|
||||
Thread.sleep(50)
|
||||
}
|
||||
}
|
||||
@After fun down() { PhoneLink.stop(); PhoneLink.handler = null; PhoneLink.allowed = EmbyServer::isHomeAddress; PhoneLink.bindTo = null; PhoneLink.port = PhoneLink.PORT; PhoneLink.clock = System::currentTimeMillis; CustomChannels.clear() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user