Wonder TV: place the approved streaming originals

Paul approved (30 November 2026) the 15 recommended streaming originals, Flora & Ulysses,
Togo on Friday and Sunday film nights only, and Magic Camp as a title-specific exception.
A cancelled cinema release that premiered on streaming now needs editorial review rather
than qualifying automatically; Artemis Fowl is held. Originals sit one after every five TV
movies in the rotation. Schedule simulation adds an everyday month (March).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 13:42:06 +00:00
co-authored by Claude Opus 5.5
parent 60d1c07eb1
commit 5dc7f39fcc
7 changed files with 94 additions and 12 deletions
@@ -407,8 +407,12 @@ private fun filmIneligible(e: TitleEvidence, b: Brief, g: Set<String>, ov: Strin
val ch = b.number
val studios = e.studios.orEmpty().joinToString(" ")
if (NotAFeature.containsMatchIn(all)) return "not a feature film (ambient or screensaver)"
// A streaming original counts as a TV movie (30 November 2026), from the reviewed list only ([StreamingOriginals]).
if (ch == WONDER_TV_NUMBER && "TV Movie" !in g && !TvMovieStudio.containsMatchIn(studios) && "${e.name}|${e.year}" !in StreamingOriginals)
// A streaming original counts as a TV movie (30 November 2026), from the reviewed list only ([StreamingOriginals]). A cancelled
// cinema release that premiered on streaming is neither: it waits for an editorial review unless approved by name.
val key = "${e.name}|${e.year}"
if (ch == WONDER_TV_NUMBER && key in CancelledTheatrical && key !in CancelledTheatricalApproved)
return "made for cinema, premiered on streaming after its cinema release was cancelled: needs editorial review"
if (ch == WONDER_TV_NUMBER && "TV Movie" !in g && !TvMovieStudio.containsMatchIn(studios) && key !in StreamingOriginals && key !in CancelledTheatricalApproved)
return "a cinema release, not a TV movie or streaming original: Wonder TV is television"
if (ch == 612 && "Animation" !in g && ("Family" !in g || (g intersect setOf("Fantasy", "Music", "Musical", "Adventure", "Comedy")).isEmpty()))
return "live action that isn't family storytelling: not Wonder's storybook"
@@ -80,6 +80,23 @@ private val WonderTvFilmsEveryday = listOf(
"Monster High: The Movie (2022)", "Good Burger 2 (2023)", "Monster High 2 (2023)", "Descendants: The Rise of Red (2024)",
"The Thundermans Return (2024)", "Henry Danger: The Movie (2025)", "Dora and the Search for Sol Dorado (2025)", "Camp Rock 3 (2026)")
/**
* Approved streaming originals (Paul, 30 November 2026), after the final metadata, rating, ownership and playability checks
* (audit-20261130-films/wondertv-rescore/final-check.json): in the everyday Featured rotation with the TV movies. Magic Camp
* is the one title-specific exception for a cancelled cinema release ([CancelledTheatricalApproved]).
*/
private val WonderTvStreamingFilms = listOf(
"Black Beauty (2020)", "Cheaper by the Dozen (2022)", "13: The Musical (2022)",
"Alexander and the Terrible, Horrible, No Good, Very Bad Road Trip (2025)", "Stargirl (2020)", "Better Nate Than Ever (2022)",
"Chang Can Dunk (2023)", "Godmothered (2020)", "Hollywood Stargirl (2022)",
"Malibu Rescue (2019)", "Rescued by Ruby (2022)", "Feel the Beat (2020)",
"Tall Girl (2019)", "Troop Zero (2020)", "World's Best (2023)",
"Flora & Ulysses (2021)", "Magic Camp (2020)")
/** Togo: a family-adventure evening (Paul, 30 November 2026), so Friday and Sunday film nights only. */
private val WonderTvWeekendFilms = listOf("Togo (2019)")
private val WonderTvWeekendNights = setOf(java.time.DayOfWeek.FRIDAY, java.time.DayOfWeek.SUNDAY)
/** Halloween's TV movies: October's Featured only. */
private val WonderTvHalloween = listOf(
"Under Wraps (1997)", "Halloweentown (1998)", "Don't Look Under the Bed (1999)", "Cry Baby Lane (2000)",
@@ -92,7 +109,15 @@ private val WonderTvChristmas = listOf(
"A Loud House Christmas (2021)")
/** Every TV movie: the films this series channel reads ([ChannelProgramming.channelFilms]). */
internal val WonderTvFilms get() = WonderTvFilmsEveryday + WonderTvHalloween + WonderTvChristmas
internal val WonderTvFilms get() = WonderTvWeekendRotation + WonderTvHalloween + WonderTvChristmas
/** The everyday rotation: one streaming original after every five TV movies, so they come round from the start, not after the 97. */
private val WonderTvRotation: List<String> by lazy {
val tv = WonderTvFilmsEveryday.chunked(5); val streaming = WonderTvStreamingFilms
(0 until maxOf(tv.size, streaming.size)).flatMap { tv.getOrElse(it) { emptyList() } + listOfNotNull(streaming.getOrNull(it)) }
}
/** Friday and Sunday's rotation: the same, with Togo early in it. */
private val WonderTvWeekendRotation: List<String> by lazy { WonderTvRotation.take(10) + WonderTvWeekendFilms + WonderTvRotation.drop(10) }
/** Every series core, so the channel rotates by weight (the films count as supporting). */
internal val WonderTvTiers: Map<String, Double> get() = WonderTvShows.associate { seriesKey(it) to TIER_CORE }
@@ -102,13 +127,16 @@ internal val WonderTvFilmNights = setOf(java.time.DayOfWeek.MONDAY, java.time.Da
internal val WonderTvDayParts: List<DayPart> get() {
val sitcoms = WonderTvAfterSchool + WonderTvBreakfast
fun movie(films: List<String>, months: Set<java.time.Month>) =
DayPart(19, 21, films, group = "Featured", days = WonderTvFilmNights, once = true, key = "wondertv.featured", months = months)
fun movie(films: List<String>, months: Set<java.time.Month>, days: Set<java.time.DayOfWeek> = WonderTvFilmNights) =
DayPart(19, 21, films, group = "Featured", days = days, once = true, key = "wondertv.featured", months = months)
val everyday = java.time.Month.values().toSet() - setOf(java.time.Month.OCTOBER, java.time.Month.DECEMBER)
return listOf(
// In their month the seasonal films come first in the turn; when they're all resting, the night takes an everyday one.
movie(WonderTvHalloween, setOf(java.time.Month.OCTOBER)),
movie(WonderTvChristmas, setOf(java.time.Month.DECEMBER)),
movie(WonderTvFilmsEveryday, java.time.Month.values().toSet() - setOf(java.time.Month.OCTOBER, java.time.Month.DECEMBER)),
// Togo only on Friday and Sunday; the other film nights without it.
movie(WonderTvWeekendRotation, everyday, WonderTvWeekendNights),
movie(WonderTvRotation, everyday, WonderTvFilmNights - WonderTvWeekendNights),
// The other nights, and the rest of a film night once its film has started: serialised shows, then sitcoms.
DayPart(19, 21, WonderTvSerial + sitcoms, group = "Featured", key = "wondertv.featured"),
DayPart(6, 9, WonderTvBreakfast, group = "Breakfast Club", key = "wondertv.breakfast"),
@@ -215,7 +243,25 @@ internal val WonderTvImdb: Map<String, String> by lazy { mapOf(
"The Thundermans Return (2024)" to "tt26943420",
"Henry Danger: The Movie (2025)" to "tt7787524",
"Dora and the Search for Sol Dorado (2025)" to "tt32621553",
"Camp Rock 3 (2026)" to "tt6743524") }
"Camp Rock 3 (2026)" to "tt6743524",
"Black Beauty (2020)" to "tt8484160",
"Cheaper by the Dozen (2022)" to "tt6705162",
"13: The Musical (2022)" to "tt3975918",
"Alexander and the Terrible, Horrible, No Good, Very Bad Road Trip (2025)" to "tt13782222",
"Stargirl (2020)" to "tt4858674",
"Better Nate Than Ever (2022)" to "tt14696284",
"Chang Can Dunk (2023)" to "tt13650494",
"Godmothered (2020)" to "tt11681250",
"Hollywood Stargirl (2022)" to "tt14109994",
"Malibu Rescue (2019)" to "tt9228950",
"Rescued by Ruby (2022)" to "tt11278476",
"Feel the Beat (2020)" to "tt10714856",
"Tall Girl (2019)" to "tt9252508",
"Troop Zero (2020)" to "tt2404465",
"World's Best (2023)" to "tt16023442",
"Flora & Ulysses (2021)" to "tt8521736",
"Magic Camp (2020)" to "tt3979300",
"Togo (2019)" to "tt5116302") }
/**
* Original streaming films, the modern equivalent of a TV movie (Paul, 30 November 2026): eligible for Wonder TV like a Disney
@@ -231,3 +277,12 @@ internal val StreamingOriginals: Map<String, String> = mapOf(
"13: The Musical|2022" to "Netflix", "Feel the Beat|2020" to "Netflix", "Malibu Rescue|2019" to "Netflix", "Rescued by Ruby|2022" to "Netflix", "Tall Girl|2019" to "Netflix",
"A Christmas Prince|2017" to "Netflix", "A Christmas Prince: The Royal Baby|2019" to "Netflix", "Christmas on Mistletoe Farm|2022" to "Netflix",
"Troop Zero|2020" to "Prime Video", "Candy Cane Lane|2023" to "Prime Video")
/**
* Films made for cinema whose cinema release was cancelled and which premiered on streaming instead (Paul, 30 November 2026):
* original intent and actual premiere differ, so they never qualify automatically. Each needs an editorial review, and only
* those approved by name ([CancelledTheatricalApproved]) count as streaming premieres for Wonder TV.
*/
internal val CancelledTheatrical: Map<String, String> = mapOf("Magic Camp|2020" to "Disney+", "Artemis Fowl|2020" to "Disney+")
/** Reviewed and approved: Magic Camp (Paul, 30 November 2026). Artemis Fowl is held for a Wonder/adventure review. */
internal val CancelledTheatricalApproved = setOf("Magic Camp|2020")
@@ -48,4 +48,13 @@ class ChairFilmExamplesTest {
listOf("Better Nate Than Ever", "Chang Can Dunk", "Cheaper by the Dozen").forEach { assertTrue(it, score(it, WONDER_TV_NUMBER) > 0.0) }
listOf("Cats", "Teenage Mutant Ninja Turtles", "A Dog's Way Home").forEach { assertTrue(it, score(it, WONDER_TV_NUMBER) == 0.0) }
}
/** A cancelled cinema release never qualifies automatically: Magic Camp is approved by name, Artemis Fowl waits for review. */
@Test fun cancelledCinemaReleasesNeedReview() {
assertTrue(score("Magic Camp", WONDER_TV_NUMBER) > 0.0)
assertTrue(score("Artemis Fowl", WONDER_TV_NUMBER) == 0.0)
val e = films.getValue("Artemis Fowl")
assertTrue(channelScore(e, Briefs.first { it.number == WONDER_TV_NUMBER }, ChannelText(emptyMap(), mapOf(e.id to e))).second.single().contains("editorial review"))
listOf("Flora & Ulysses", "Togo").forEach { assertTrue(it, score(it, WONDER_TV_NUMBER) > 0.0) }
}
}
@@ -21,7 +21,7 @@ class SpecialEventsTest {
assertEquals(expected.size, held.size)
// 55 before PUNCHLINE's 13 and SYNDICATE's 5 (Paul, 25 November 2026).
// Wonder TV's Featured film nights (30 November 2026): three, one for October, one for December, one for the rest.
assertEquals(55 + 13 + 5 + 3, held.size)
assertEquals(55 + 13 + 5 + 3 + 1, held.size) // +1: Wonder TV's Friday and Sunday film nights (Togo)
}
@Test fun everyTakeoverIsThereExactlyOnce() {
@@ -38,7 +38,7 @@ class SpecialEventsTest {
}
@Test fun stageAAddsNothingAndEverythingIsApproved() {
assertEquals(55 + 13 + 5 + 3 + 4 + 18, all.size)
assertEquals(55 + 13 + 5 + 3 + 1 + 4 + 18, all.size)
assertTrue(all.all { it.status == SpecialStatus.Approved })
}
@@ -12,7 +12,7 @@ class WonderTvChannelTest {
@Test fun itsListAndFilms() {
assertEquals("Wonder TV", p.name)
assertEquals(83, p.searches.size)
assertEquals(97, p.channelFilms.size)
assertEquals(115, p.channelFilms.size)
assertTrue(p.channelFilms.all { FilmIdentity.of(it).year != null && FilmIdentity.of(it).imdb?.startsWith("tt") == true })
listOf("High School Musical: The Musical: The Series", "Big Shot", "Degrassi Junior High").forEach { assertTrue(it, it in p.searches) }
assertEquals(ChannelCategory.Kids, ChannelBrands.forNumber(WONDER_TV_NUMBER)!!.category)
@@ -26,7 +26,11 @@ class WonderTvChannelTest {
@Test fun filmsOnlyOnFilmNightsAndSeasonalOnlyInTheirMonth() {
val films = p.dayParts.filter { part -> part.titles.any { it in p.channelFilms } }
assertTrue(films.all { it.fromHour == 19 && it.toHour == 21 && it.once && it.days == WonderTvFilmNights })
assertTrue(films.all { it.fromHour == 19 && it.toHour == 21 && it.once && WonderTvFilmNights.containsAll(it.days) })
// Togo, the family-adventure evening, only on Friday and Sunday; the approved streaming originals every film night.
films.filter { "Togo (2019)" in it.titles }.forEach { assertEquals(setOf(java.time.DayOfWeek.FRIDAY, java.time.DayOfWeek.SUNDAY), it.days) }
assertTrue(films.filter { java.time.Month.MARCH in it.months }.all { "Better Nate Than Ever (2022)" in it.titles && "Magic Camp (2020)" in it.titles })
assertTrue(p.channelFilms.none { it.startsWith("Artemis Fowl") || it.startsWith("A Christmas Prince") || it.startsWith("Candy Cane Lane") })
val october = films.first { java.time.Month.OCTOBER in it.months }; val december = films.first { java.time.Month.DECEMBER in it.months }
assertTrue(october.titles.any { it.startsWith("Halloweentown") } && october.titles.none { it.startsWith("Tiny Christmas") })
assertTrue(december.titles.any { it.startsWith("Tiny Christmas") } && december.titles.none { it.startsWith("Halloweentown") })
@@ -47,7 +47,9 @@ class WonderTvSimulationTest {
val seasonal = setOf("Halloweentown", "Twitches", "Under Wraps", "Don't Look Under the Bed", "The Boy Who Cried Werewolf", "Girl vs. Monster", "Cry Baby Lane", "A Really Haunted Loud House",
"'Twas the Night", "Tiny Christmas", "Santa Hunters", "Merry Christmas, Drake & Josh", "A Loud House Christmas")
val checks = mutableListOf<Boolean>()
for ((label, start) in listOf("october" to java.time.LocalDateTime.of(2026, 10, 1, 6, 0), "december" to java.time.LocalDateTime.of(2026, 11, 30, 6, 0))) {
// March as well (30 November 2026): an everyday month, so the streaming originals and Togo's Friday and Sunday come round.
for ((label, start) in listOf("october" to java.time.LocalDateTime.of(2026, 10, 1, 6, 0), "december" to java.time.LocalDateTime.of(2026, 11, 30, 6, 0),
"march" to java.time.LocalDateTime.of(2027, 3, 1, 6, 0))) {
val now = start.atZone(zone).toInstant().toEpochMilli()
val all = LinkedHashMap<String, ScheduleEntry>(); var plan: ChannelPlan? = null; var aired = ScheduleCursor()
for (day in 0 until 35) {
@@ -78,6 +80,10 @@ class WonderTvSimulationTest {
"shortest gap between a film's showings ${repeats.minOrNull() ?: "none repeated"} days; seasonal off-season $offSeason; gaps ${gaps} min; clashes $clashes\n")
byNight.filter { it.value.size > 1 }.forEach { (d, l) -> report.append(" two films $d: ${l.joinToString { "${local(it.startMs).toLocalTime()} ${it.media.item.title}" }}\n") }
filmEntries.filter { local(it.startMs).hour !in 19..20 }.forEach { report.append(" outside Featured: ${local(it.startMs)} ${it.media.item.title}\n") }
val togoOff = filmEntries.filter { it.media.item.title.startsWith("Togo") }.map { local(it.startMs).dayOfWeek }.filter { it != java.time.DayOfWeek.FRIDAY && it != java.time.DayOfWeek.SUNDAY }
val streaming = filmEntries.map { it.media.item.title }.filter { t -> (StreamingOriginals.keys + CancelledTheatricalApproved).any { it.substringBefore('|') == t } }.distinct()
report.append(" streaming originals shown: ${streaming.size} (${streaming.joinToString()}); Togo off its nights: $togoOff\n")
checks += listOf(togoOff.isEmpty())
checks += listOf(twoAnight == 0, outOfSlot == 0, offSeason.isEmpty(), clashes == 0, (repeats.minOrNull() ?: 99) >= 7)
}
File(out, "summary.txt").writeText(report.toString()); println(report)
@@ -30,3 +30,7 @@
{"id": "5584038", "type": "Movie", "name": "Better Nate Than Ever", "year": 2022, "overview": "13-year-old Nate Foster has big Broadway dreams but there\u2019s only one problem \u2014 he can\u2019t even land a part in the school play. When his parents leave town, Nate and his best friend Libby sneak off to the Big Apple for a once-in-a-lifetime opportunity to prove everyone wrong. A chance encounter with Nate\u2019s long-lost Aunt Heidi turns his journey upside-down, and together they must learn that life\u2019s greatest adventures are only as big as your dreams.", "genres": ["Music", "Family", "Comedy"], "studios": ["Walt Disney Pictures", "Marc Platt Productions"], "rating": "PG", "community": 6.4, "taglines": null, "countries": ["United States of America"]}
{"id": "5586487", "type": "Movie", "name": "Chang Can Dunk", "year": 2023, "overview": "Chang, a 16-year-old, Asian American, bets the high school basketball star that he can dunk by Homecoming. The bet leads 5' 8\" Chang on a quest to learn to dunk\u2014not only to impress his crush, Kristy, but to gain the respect of his high school peers too. But before he can rise up and truly throw one down, he'll have to reexamine everything he knows about himself, his friendships and his family.", "genres": ["Family", "Comedy", "Drama"], "studios": ["Hillman Grad Productions"], "rating": "PG", "community": 6.3, "taglines": null, "countries": ["United States of America"]}
{"id": "5437319", "type": "Movie", "name": "Cheaper by the Dozen", "year": 2022, "overview": "The raucous exploits of the Bakers, a blended family of 12, as they simultaneously navigate a hectic home life and their family business.", "genres": ["Comedy", "Family"], "studios": ["Walt Disney Pictures", "Khalabo Ink Society"], "rating": "PG", "community": 4.6, "taglines": null, "countries": ["United States of America"]}
{"id": "5437343", "type": "Movie", "name": "Artemis Fowl", "year": 2020, "overview": "Artemis Fowl, a young criminal prodigy, hunts down a secret society of fairies to find his missing father.", "genres": ["Adventure", "Family", "Fantasy"], "studios": ["Tribeca Productions", "Walt Disney Pictures", "TKBC"], "rating": "PG", "community": 4.3, "taglines": null, "countries": ["United Kingdom", "United States of America"]}
{"id": "5438097", "type": "Movie", "name": "Flora & Ulysses", "year": 2021, "overview": "When Flora rescues a squirrel she names Ulysses, she is amazed to discover he possesses unique superhero powers, which take them on an adventure of humorous complications that ultimately change Flora's life and her outlook forever.", "genres": ["Adventure", "Comedy", "Family"], "studios": ["Walt Disney Pictures", "Netter Productions"], "rating": "PG", "community": 6.2, "taglines": null, "countries": ["United States of America"]}
{"id": "5436682", "type": "Movie", "name": "Magic Camp", "year": 2020, "overview": "At the urging of his former mentor and Magic Camp owner Roy Preston, Andy returns as a counselor to the camp of his youth hoping to reignite his career.", "genres": ["Comedy", "Family", "Fantasy"], "studios": ["Disney+"], "rating": "PG", "community": 6.3, "taglines": null, "countries": ["United States of America"]}
{"id": "5545855", "type": "Movie", "name": "Togo", "year": 2019, "overview": "The untold true story set in the winter of 1925 that takes you across the treacherous terrain of the Alaskan tundra for an exhilarating and uplifting adventure that will test the strength, courage and determination of one man, Leonhard Seppala, and his lead sled dog, Togo.", "genres": ["Adventure", "Family"], "studios": ["Walt Disney Pictures"], "rating": "PG", "community": 7.9, "taglines": null, "countries": ["United States of America"]}