diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 8e07aed1..938bf953 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -9,8 +9,8 @@ android { applicationId = "tv.orbit.classic" minSdk = 26 targetSdk = 36 - versionCode = 49 - versionName = "0.48.0-movie-night" + versionCode = 50 + versionName = "0.49.0-three-channels" } buildFeatures { compose = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 } diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt b/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt index fe13e84f..cb30d783 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt @@ -7,6 +7,9 @@ internal object ChannelBrands { 101 to ChannelBranding("orbit-1", "Orbit 1", R.drawable.orbit_one_epg, R.drawable.orbit_one_background, R.drawable.orbit_one_bug, ChannelCategory.Entertainment), 102 to ChannelBranding("orbit-after-dark", "Orbit After Dark", R.drawable.orbit_after_dark_epg, R.drawable.orbit_after_dark_background, R.drawable.orbit_after_dark_bug, ChannelCategory.Movies), 103 to ChannelBranding("vortex", "Vortex", R.drawable.vortex_epg, R.drawable.vortex_background, R.drawable.vortex_bug, ChannelCategory.Entertainment), + 111 to ChannelBranding("orbit-gold", "Orbit Gold", R.drawable.orbit_gold_epg, R.drawable.orbit_gold_background, R.drawable.orbit_gold_bug, ChannelCategory.Comedy), + 121 to ChannelBranding("heroes", "Orbit Heroes", R.drawable.heroes_epg, R.drawable.heroes_background, R.drawable.heroes_bug, ChannelCategory.Entertainment), + 141 to ChannelBranding("evidence", "Orbit Evidence", R.drawable.evidence_epg, R.drawable.evidence_background, R.drawable.evidence_bug, ChannelCategory.Entertainment), 140 to ChannelBranding("orbit-terra", "Orbit Terra", R.drawable.orbit_terra_epg, R.drawable.orbit_terra_background, R.drawable.orbit_terra_bug, ChannelCategory.Documentaries), 152 to ChannelBranding("paradox", "Orbit Paradox", R.drawable.paradox_epg, R.drawable.paradox_background, R.drawable.paradox_bug, ChannelCategory.Entertainment)) fun forNumber(number: Int): ChannelBranding? = brands[number] diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt b/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt index 2e61282a..87931ea4 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt @@ -1,11 +1,27 @@ package tv.orbit.classic /** A channel the app can build from named shows. Numbers follow the design and may change with the generic channel list. */ -internal data class ChannelPreset(val number: Int, val name: String, val searches: List) +internal data class ChannelPreset(val number: Int, val name: String, val searches: List, + /** Started from its smart schedule alone, with no separate loop to build first. */ + val smartOnly: Boolean = false) internal val ChannelPresets = listOf( ChannelPreset(140, "Terra", listOf("Blue Planet", "Planet Earth", "Frozen Planet", "Life", "Our Planet")), - ChannelPreset(152, "Paradox", listOf("X-Files", "Buffy the Vampire Slayer", "Supernatural", "Fringe", "Doctor Who"))) + ChannelPreset(152, "Paradox", listOf("X-Files", "Buffy the Vampire Slayer", "Supernatural", "Fringe", "Doctor Who")), + ChannelPreset(111, "Orbit Gold", listOf("Only Fools and Horses", "Father Ted", "Blackadder", "The Black Adder", "Fawlty Towers", "Ghosts", "The Good Life", "The Green Green Grass", + "The Vicar of Dibley", "Porridge", "Taskmaster", "8 Out of 10 Cats", "Dad's Army", "Yes Minister", "Keeping Up Appearances", "Open All Hours"), smartOnly = true), + ChannelPreset(121, "Heroes", listOf("Batman: The Animated Series", "Superman: The Animated Series", "Spider-Man: The Animated Series", "X-Men: The Animated Series", "Batman Beyond", + "Spider-Man Unlimited", "Justice League", "Justice League Unlimited", "Teen Titans", "Static Shock", "The Spectacular Spider-Man", "Young Justice", + "Batman: The Brave and the Bold", "Iron Man: Armored Adventures", "The Avengers: Earth's Mightiest Heroes"), smartOnly = true), + ChannelPreset(141, "Evidence", listOf("CSI: Crime Scene Investigation", "NCIS", "CSI: Miami", "CSI: NY", "Law & Order", "Law & Order: Special Victims Unit", "Criminal Minds", "Bones", + "Castle", "The Mentalist", "Monk", "Columbo", "Midsomer Murders", "Vera", "Luther", "Line of Duty", "Taggart", "Silent Witness", "Waking the Dead", "A Touch of Frost"), smartOnly = true)) + +/** A fallback for a channel with no old loop: its first episodes, in turn. Used only outside its plan. */ +internal fun loopFromPool(pool: List, programming: ChannelProgramming): SampleChannel? { + val turns = (0 until (pool.maxOfOrNull { it.episodes.size } ?: 0)).asSequence().flatMap { round -> pool.asSequence().mapNotNull { show -> show.episodes.getOrNull(round)?.let { show to it } } } + val media = turns.take(15).map { (show, episode) -> ScheduledMedia(scheduledItem(show.title, episode), episode.sourceId, episode.durationMs) }.toList() + return if (media.size < 2) null else SampleChannel(media, programming.name, programming.number) +} /** What a build used, so the viewer can see what the library did and didn't have. */ internal class PresetBuild(val channel: SampleChannel, val shows: List, val missing: List) diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt index cc2e40e2..7ec36ea2 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt @@ -19,7 +19,7 @@ internal data class ChannelProgramming(val number: Int, val name: String, val se val dayParts: List = emptyList(), val suggestionRules: List = emptyList()) { /** Changes when the list does, so the episode cache is read again. What's already committed stays. */ - val signature get() = "${searches.joinToString("|")}#$seriesCount" + val signature get() = "$CHANNEL_POOL_VERSION#${searches.joinToString("|")}#$seriesCount" } /** Toonami-inspired: Paul's picks and the earlier shortlist, split into cartoons by day and anime from the evening. */ @@ -56,7 +56,8 @@ internal val SmartChannels = listOf( "Life on Earth", "The Living Planet", "The Trials of Life", "Our Planet", "Our Planet II", "Dynasties", "Dynasties II", "Seven Worlds, One Planet", "A Perfect Planet", "Hostile Planet", "Africa", "Wild China", "South Pacific", "Great Barrier Reef", "The Hunt", "The Life of Mammals", "The Life of Birds", "Nature's Great Events", "Green Planet", "Prehistoric Planet"), seriesCount = 20, finishTogether = true, exactTitles = true), - ChannelProgramming(152, "Paradox", ChannelPresets.first { it.number == 152 }.searches)) + ChannelProgramming(152, "Paradox", ChannelPresets.first { it.number == 152 }.searches)) + + ChannelPresets.filter { it.smartOnly }.map { ChannelProgramming(it.number, it.name, it.searches, seriesCount = 25, finishTogether = true, exactTitles = true) } internal data class EpisodeMark(val season: Int, val episode: Int) : Comparable { override fun compareTo(other: EpisodeMark) = compareValuesBy(this, other, { it.season }, { it.episode }) @@ -81,6 +82,9 @@ internal data class ChannelPlan(val entries: List, val tail: Sche val endMs get() = entries.lastOrNull()?.endMs ?: Long.MIN_VALUE } +/** Bump when the way pools are read changes, so each channel reads its once again. */ +private const val CHANNEL_POOL_VERSION = 2 + internal const val SCHEDULE_AHEAD_MS = 7 * 24 * 60 * 60_000L internal const val SCHEDULE_TOP_UP_MS = 6 * 24 * 60 * 60_000L internal const val SCHEDULE_KEEP_PAST_MS = 24 * 60 * 60_000L diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelScheduler.kt b/android/app/src/main/java/tv/orbit/classic/ChannelScheduler.kt index da529b68..1346e795 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelScheduler.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelScheduler.kt @@ -26,6 +26,15 @@ internal class ChannelScheduler(private val store: ScheduleStore, private val cl store.saveProgress(userId, number, ScheduleStore.SavedProgress(enabled, progress?.aired ?: ScheduleCursor())) } + /** Starts a channel that has no loop yet: reads its pool, then gives it a small fallback made from that pool. */ + fun seedLoop(session: EmbySampleSession, userId: String, programming: ChannelProgramming, checkActive: () -> Unit = {}): SampleChannel { + val choices = store.loadChoices(userId, programming.number) + val read = session.readChannelPool(programming, null, choices, checkActive) + val loop = loopFromPool(read.series, programming) ?: throw EmbyCheckException("None of ${programming.name}'s shows were found with episodes to schedule.") + store.savePool(userId, programming.number, ScheduleStore.SavedPool(read.series, clock(), "${programming.signature}#${choices.tag}")) + return loop + } + /** * Brings a channel's plan up to seven days ahead, reading the provider only if the cached pool is missing or old. * A failed refresh keeps what's there, so a provider outage can't disturb what's committed. diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt index d2644037..e09e7169 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt @@ -41,7 +41,7 @@ internal class HttpsEmbyTransport(internal val deviceId: String = UUID.randomUUI connection.connectTimeout = 10_000 connection.readTimeout = request.readTimeoutMs ?: if (request.path == "/Sessions/Logout") 5_000 else 15_000 connection.setRequestProperty("Accept", "application/json") - connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.48.0\"") + connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.49.0\"") request.token?.let { connection.setRequestProperty("X-Emby-Token", it) } if (request.method == "POST") { val bytes = request.body.orEmpty().toByteArray(Charsets.UTF_8) diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt index 0262eaf3..3f777127 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt @@ -448,7 +448,8 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea } fun setSmartSchedule(programming: ChannelProgramming, turnOn: Boolean) { val active = session ?: return - val loop = smartLoop(programming) ?: return + val existing = smartLoop(programming) + if (existing == null && ChannelPresets.none { it.number == programming.number }) return // A second press straight after the first is taken as a slip. if (busy || now - lastSmartPress < 5_000) return lastSmartPress = now @@ -459,10 +460,12 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea val report = withContext(Dispatchers.IO) { val context = coroutineContext scheduler.setEnabled(active.accountId, programming.number, true) + val loop = existing ?: scheduler.seedLoop(active, active.accountId, programming) { context.ensureActive() }.also { extraChannels = extraChannels + it } scheduler.topUp(active, active.accountId, programming, loop) { context.ensureActive() }.also { scheduler.load(active.accountId, loop)?.let { on -> scheduledChannels = scheduledChannels + (programming.number to on) } } } + onChannelAvailable(true) message = "${programming.name} is scheduled: ${report.programmes} programmes from ${report.episodes} titles: ${report.shows.take(10).joinToString()}${if (report.shows.size > 10) " and ${report.shows.size - 10} more" else ""}. " + "${report.requests} requests, ${report.fetchMs / 1000} s to read, ${report.planMs} ms to plan, ${report.bytes / 1024} KB stored." } else { @@ -719,7 +722,7 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea Modifier.fillMaxWidth(), enabled = !busy && session != null, onClick = { if (seriesMatches != null) reviewingSeries = true else checkMoreSeries() }) - ChannelPresets.forEach { preset -> + ChannelPresets.filterNot { it.smartOnly }.forEach { preset -> val built = extraChannels.any { it.number == preset.number } OrbitButton("${preset.number} ${preset.name} — ${if (built) "rebuild" else "build"}", Modifier.fillMaxWidth(), enabled = !busy && session != null, onClick = { buildPreset(preset) }) @@ -727,7 +730,7 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea SmartChannels.forEach { programming -> val on = scheduledChannels.containsKey(programming.number) OrbitButton("${programming.number} ${programming.name} — smart schedule is ${if (on) "ON. Press to go back to its loop" else "OFF. Press to turn on"}", Modifier.fillMaxWidth(), - enabled = !busy && session != null && smartLoop(programming) != null, onClick = { setSmartSchedule(programming, !on) }) + enabled = !busy && session != null && (smartLoop(programming) != null || ChannelPresets.any { it.number == programming.number }), onClick = { setSmartSchedule(programming, !on) }) if (programming.suggestionRules.isNotEmpty()) OrbitButton("${programming.number} ${programming.name} — bigger pool: review suggestions", Modifier.fillMaxWidth(), enabled = !busy && session != null && smartLoop(programming) != null, onClick = { openSuggestions(programming) }) } diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyPlaybackProtocol.kt b/android/app/src/main/java/tv/orbit/classic/EmbyPlaybackProtocol.kt index ffc39fcd..105ed0a5 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyPlaybackProtocol.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyPlaybackProtocol.kt @@ -186,12 +186,12 @@ internal class EmbySampleSession(private val transport: EmbyTransport, private v internal class PoolRead(val series: List, val requests: Int) /** The first shows in the channel's list that have episodes to schedule. */ - fun readChannelPool(programming: ChannelProgramming, loop: SampleChannel, choices: ChannelChoices = ChannelChoices(), checkActive: () -> Unit = {}): PoolRead { + fun readChannelPool(programming: ChannelProgramming, loop: SampleChannel?, choices: ChannelChoices = ChannelChoices(), checkActive: () -> Unit = {}): PoolRead { var requests = 0 val pool = mutableListOf() if (programming.filmRestMs != null) { // Films you've already chosen for this channel stay in it. - loop.lineup.filter { it.item.type == "Movie" }.forEach { pool += PoolSeries(it.item.id, it.item.title, listOf(PoolEpisode(it.item.id, it.sourceId, EpisodeMark(1, 1), it.item.title, it.durationMs))) } + loop?.lineup.orEmpty().filter { it.item.type == "Movie" }.forEach { pool += PoolSeries(it.item.id, it.item.title, listOf(PoolEpisode(it.item.id, it.sourceId, EpisodeMark(1, 1), it.item.title, it.durationMs))) } for (title in programming.searches) { if (pool.size >= programming.seriesCount) break checkActive() @@ -205,13 +205,14 @@ internal class EmbySampleSession(private val transport: EmbyTransport, private v requests++ val candidates = searchSeries(transport, userId, ::currentToken, search).candidates val match = bestSeriesMatch(search, if (programming.exactTitles) candidates.filter { seriesKey(it.title) == seriesKey(search) } else candidates) ?: continue - if (pool.any { it.id == match.id }) continue + // A second copy of a show in the library counts as the same show. + if (pool.any { it.id == match.id || seriesKey(it.title) == seriesKey(match.title) }) continue val whole = readWholeSeries(transport, userId, ::currentToken, match, checkActive, onRequest = { requests++ }) if (whole.episodes.isNotEmpty()) pool += whole } for (accepted in choices.accepted) { checkActive() - if (pool.any { it.id == accepted.id }) continue + if (pool.any { it.id == accepted.id || seriesKey(it.title) == seriesKey(accepted.title) }) continue if (accepted.type == "Movie") { val source = accepted.sourceId ?: continue val duration = accepted.durationMs ?: continue diff --git a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt index 3358bf88..7a331734 100644 --- a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt +++ b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt @@ -33,7 +33,7 @@ internal class SecureMediaDataSource(private val session: EmbySampleSession) : B next.instanceFollowRedirects = false next.connectTimeout = 10_000 next.readTimeout = 20_000 - next.setRequestProperty("User-Agent", "OrbitTV/0.48.0") + next.setRequestProperty("User-Agent", "OrbitTV/0.49.0") next.setRequestProperty("Accept-Encoding", "identity") session.mediaHeaders(address).forEach { (key, value) -> next.setRequestProperty(key, value) } if (dataSpec.position != 0L || dataSpec.length != C.LENGTH_UNSET.toLong()) { diff --git a/android/app/src/main/res/drawable-nodpi/evidence_background.webp b/android/app/src/main/res/drawable-nodpi/evidence_background.webp new file mode 100644 index 00000000..9fb32d24 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/evidence_background.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/evidence_bug.webp b/android/app/src/main/res/drawable-nodpi/evidence_bug.webp new file mode 100644 index 00000000..679fb4da Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/evidence_bug.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/evidence_epg.webp b/android/app/src/main/res/drawable-nodpi/evidence_epg.webp new file mode 100644 index 00000000..97719103 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/evidence_epg.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/heroes_background.webp b/android/app/src/main/res/drawable-nodpi/heroes_background.webp new file mode 100644 index 00000000..ad791cf8 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/heroes_background.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/heroes_bug.webp b/android/app/src/main/res/drawable-nodpi/heroes_bug.webp new file mode 100644 index 00000000..c54e0ac0 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/heroes_bug.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/heroes_epg.webp b/android/app/src/main/res/drawable-nodpi/heroes_epg.webp new file mode 100644 index 00000000..4667775b Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/heroes_epg.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_gold_background.webp b/android/app/src/main/res/drawable-nodpi/orbit_gold_background.webp new file mode 100644 index 00000000..68b6cfd2 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_gold_background.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_gold_bug.webp b/android/app/src/main/res/drawable-nodpi/orbit_gold_bug.webp new file mode 100644 index 00000000..0af6d174 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_gold_bug.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_gold_epg.webp b/android/app/src/main/res/drawable-nodpi/orbit_gold_epg.webp new file mode 100644 index 00000000..0f72c484 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_gold_epg.webp differ diff --git a/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt b/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt index 6e9d9572..bba033be 100644 --- a/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt @@ -82,4 +82,39 @@ class ChannelPresetsTest { fun aSearchWithoutTheFindsTheFullTitle() { assertEquals("a", bestSeriesMatch("X-Files", listOf(series("a", "The X-Files", 1993)))?.id) } + + private fun poolShow(id: String, n: Int) = PoolSeries(id, "Show $id", (1..n).map { PoolEpisode("$id-$it", "s$id-$it", EpisodeMark(1, it), "E$it", 60_000) }) + private val programming = ChannelProgramming(121, "Heroes", listOf("x")) + + @Test fun aChannelWithNoLoopGetsAFallbackFromItsPool() { + val loop = loopFromPool(listOf(poolShow("a", 20), poolShow("b", 2)), programming)!! + assertEquals(15, loop.lineup.size) + assertEquals(121, loop.number) + assertEquals(listOf("a-1", "b-1", "a-2", "b-2", "a-3"), loop.lineup.take(5).map { it.item.id }) + } + + @Test fun tooFewEpisodesGiveNoFallback() { + assertNull(loopFromPool(listOf(poolShow("a", 1)), programming)) + assertNull(loopFromPool(emptyList(), programming)) + } + + @Test fun theNewChannelsSurviveASaveAndRestore() { + val heroes = loopFromPool(listOf(poolShow("a", 3)), programming)!! + val restored = RememberedStateCodec.decode(RememberedStateCodec.encode(state(listOf(heroes), 121))) + assertEquals(121, restored.selectedNumber) + assertEquals(listOf(121), restored.extra.map { it.number }) + } + + @Test fun theNewChannelsAreConfiguredAndBranded() { + listOf(111, 121, 141).forEach { number -> + assertTrue(SmartChannels.any { it.number == number && it.exactTitles && it.finishTogether }) + assertNotNull(ChannelBrands.forNumber(number)) + assertTrue(ChannelPresets.first { it.number == number }.smartOnly) + } + assertEquals(ChannelCategory.Comedy, ChannelBrands.forNumber(111)!!.category) + } + + @Test fun smartChannelNumbersAreUnique() { + assertEquals(SmartChannels.size, SmartChannels.map { it.number }.distinct().size) + } } diff --git a/docs/roadmap.md b/docs/roadmap.md index a9f80173..2f0d2d6f 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -71,7 +71,7 @@ Audit and phased plan are in review, from `docs/briefs/indexing-programming-engi ## Smart channels status -Phase A of [the Smart Channels Foundation brief](briefs/smart-channels-foundation-2026-11-01.md) passed Paul's review on 2 November 2026, with Paradox on the box (VERIFICATION-0.39.0.md). Phase B (Terra and After Dark, VERIFICATION-0.40.0.md) and Phase C (Vortex, plus fewer repeats on Terra, VERIFICATION-0.41.0.md) are on the box as 0.41, tested and awaiting Paul's review. Day parts are on the box on Vortex and After Dark (VERIFICATION-0.42.0.md). Phase D (the remaining channels) needs separate approval. Reviewed suggestions are built and in use on After Dark and Vortex (VERIFICATION-0.47.0.md), the first piece of the programming director. Next: a Vortex Movie Night as the first weekday event, then further channels. Animated idents are design files only and aren't in the app yet. +Phase A of [the Smart Channels Foundation brief](briefs/smart-channels-foundation-2026-11-01.md) passed Paul's review on 2 November 2026, with Paradox on the box (VERIFICATION-0.39.0.md). Phase B (Terra and After Dark, VERIFICATION-0.40.0.md) and Phase C (Vortex, plus fewer repeats on Terra, VERIFICATION-0.41.0.md) are on the box as 0.41, tested and awaiting Paul's review. Day parts are on the box on Vortex and After Dark (VERIFICATION-0.42.0.md). Phase D (the remaining channels) needs separate approval. Reviewed suggestions are built and in use on After Dark and Vortex (VERIFICATION-0.47.0.md), the first piece of the programming director. Vortex Movie Night, the first weekday event, is on the box. Phase D has started with Orbit Gold (111), Heroes (121) and Evidence (141), built as 0.49. Their numbers are placeholders until Paul maps the lineup. Animated idents are design files only and aren't in the app yet. ## Programming director