Your channels: remove from the phone, and take turns in a mixed order

Each channel of your own gets an x on the phone's More page, asked first; the TV sets its files
aside so a new channel on that number starts clean. Shows and films on your own channels take
turns in a fixed mixed order rather than the order chosen (Mistletoe played its collection A to Z).
0.108.89.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-07 13:24:06 +00:00
co-authored by Claude Opus 5.5
parent 1bc38e7c86
commit 2ce22fe2e9
12 changed files with 71 additions and 10 deletions
@@ -94,4 +94,18 @@ class SmartSetupTest {
assertNull(CustomChannel.fromJson(JSONObject(c.toJson().put("brand", "not-a-pack").toString())).brand) // only Orbit's own packs
CustomChannels.clear()
}
// Mistletoe played the Hallmark Christmas collection A to Z (Paul, 7 November 2026): your own channels take turns in a
// mixed order, the same at every top-up, and every title still gets its turn.
@Test fun ownChannelsTakeTurnsInAMixedOrder() {
val films = (1..40).map { k -> PoolSeries("$k", "Film $k", listOf(PoolEpisode("$k", "s$k", EpisodeMark(1, 1), "Film $k", 90 * 60_000L))) }
val mixed = mixedTurnOrder(films, 701)
assertEquals(mixed, mixedTurnOrder(films.reversed(), 701))
assertEquals(films.toSet(), mixed.toSet())
assertNotEquals(films, mixed)
assertTrue(programmingOf(CustomChannel(701, "Mistletoe", PlayStyle.Shaped, null, "", films.map { it.title })).mixedTurns)
val plan = extendSchedule(mixed, ScheduleCursor(), 0L, 40 * 90 * 60_000L, finishTogether = true)
assertEquals(40, plan.entries.map { it.seriesId }.toSet().size)
assertNotEquals(films.map { it.id }, plan.entries.map { it.seriesId })
}
}