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 2b5eaade..f6e5d56c 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt @@ -69,7 +69,7 @@ internal val ChannelPresets = listOf( "Frozen (2013)", "Tangled (2010)", "Moana (2016)", "Zootopia", "Big Hero 6", "Wreck-It Ralph", "Dinosaur (2000)", "Fun and Fancy Free (1947)", "Melody Time (1948)", "The Tigger Movie (2000)", "Piglet's Big Movie (2003)", "Strange World (2022)", "Wish (2023)", "Moana 2 (2024)", "Zootopia 2 (2025)", "Bedknobs and Broomsticks (1971)", "Pete's Dragon (1977)", "Disenchanted (2022)", "Mufasa: The Lion King (2024)", // The rest of Disney Animation, moved from PixelZ (Paul, 23 November 2026). - "Frozen II", "Encanto", "Raya and the Last Dragon", "Ralph Breaks the Internet", "Bolt (2008)", "Meet the Robinsons", "Chicken Little"), smartOnly = true, films = true), + "Frozen II", "Encanto", "Raya and the Last Dragon", "Ralph Breaks the Internet", "Bolt (2008)", "Meet the Robinsons", "Chicken Little") + WonderLiveAction, smartOnly = true, films = true), ChannelPreset(613, "PixelZ", listOf("Toy Story", "Toy Story 2", "Toy Story 3", "Toy Story 4", "A Bug's Life", "Monsters, Inc.", "Monsters University", "Finding Nemo", "Finding Dory", "The Incredibles", "Incredibles 2", "Cars", "Cars 2", "Cars 3", "Ratatouille", "WALL·E", "Up (2009)", "Brave (2012)", "Inside Out (2015)", "Coco", "Luca", "Soul (2020)", "Shrek", "Shrek 2", "Shrek the Third", "Shrek Forever After", "Puss in Boots (2011)", "Madagascar", "Madagascar: Escape 2 Africa", "Kung Fu Panda", "Kung Fu Panda 2", "How to Train Your Dragon (2010)", "How to Train Your Dragon 2", "Megamind", "Antz", "Ice Age", "Ice Age: The Meltdown", "Despicable Me", "Despicable Me 2", "Minions", "The Lego Movie", "Rio", "Robots (2005)", "Cloudy with a Chance of Meatballs", "Hotel Transylvania", "Hotel Transylvania 2", "Trolls", "Sing (2016)", "The Secret Life of Pets", "Despicable Me 3", "Monsters vs Aliens", "The Croods", "Turbo (2013)", "Rise of the Guardians", "Epic (2013)", "Ice Age: Dawn of the Dinosaurs", "Ice Age: Continental Drift", "Happy Feet", "Over the Hedge", "Shark Tale", "Bee Movie", "Puss in Boots: The Last Wish", "Madagascar 3: Europe's Most Wanted", "Kung Fu Panda 3", "How to Train Your Dragon: The Hidden World", "Onward", "Elemental (2023)", "Lightyear", "Turning Red", "The Good Dinosaur", "The Wild Robot", "The LEGO Batman Movie", "The Lego Ninjago Movie", "Storks", "Ferdinand", "The Boss Baby", "The Smurfs (2011)", "Open Season (2006)", "Surf's Up", "The Polar Express", "Monster House", "Rango", "Spider-Man: Into the Spider-Verse", "Spider-Man: Across the Spider-Verse", "The Mitchells vs. the Machines", "Luck (2022)", // Aardman, moved from Wonder: PixelZ is Pixar-style, DreamWorks, Aardman and stop-motion; Wonder is the Disney side (Paul, 23 November 2026). diff --git a/android/app/src/main/java/tv/orbit/classic/FilmIdentity.kt b/android/app/src/main/java/tv/orbit/classic/FilmIdentity.kt index 4a7a9c97..93770139 100644 --- a/android/app/src/main/java/tv/orbit/classic/FilmIdentity.kt +++ b/android/app/src/main/java/tv/orbit/classic/FilmIdentity.kt @@ -14,8 +14,8 @@ internal data class FilmIdentity(val title: String, val year: Int? = null, val i private val withYear = Regex("""^(.*\S)\s+\((\d{4})\)$""") fun of(entry: String): FilmIdentity { val trimmed = entry.trim() - val match = withYear.matchEntire(trimmed) ?: return FilmIdentity(trimmed, imdb = FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed]) - return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed]) + val match = withYear.matchEntire(trimmed) ?: return FilmIdentity(trimmed, imdb = FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed] ?: WonderImdb[trimmed]) + return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed] ?: WonderImdb[trimmed]) } } } diff --git a/android/app/src/main/java/tv/orbit/classic/WonderLiveAction.kt b/android/app/src/main/java/tv/orbit/classic/WonderLiveAction.kt new file mode 100644 index 00000000..077219b4 --- /dev/null +++ b/android/app/src/main/java/tv/orbit/classic/WonderLiveAction.kt @@ -0,0 +1,41 @@ +package tv.orbit.classic + +/** + * Wonder's live-action films (Paul, 26 November 2026, Wonder family option 1): Wonder is storybook cinema, hand-drawn + * animation, fantasy and magical family adventures, with the live-action films that suit it. These 51 passed the read-only + * audit (audit-20261126-wonder/live-action): rated G or PG, playable here, and on no other channel. Mulan (2020, PG-13) and + * the seven borderline films wait for Paul; films with a home elsewhere (VHS, Christmas, Premiere) stay there. + */ +internal val WonderLiveAction = listOf( + "Mary Poppins (1964)", "Mary Poppins Returns (2018)", "Pete's Dragon (2016)", "101 Dalmatians (1996)", "102 Dalmatians (2000)", "Maleficent (2014)", + "Maleficent: Mistress of Evil (2019)", "Cinderella (2015)", "Beauty and the Beast (2017)", "The Jungle Book (2016)", "Aladdin (2019)", + "The Lion King (2019)", "Dumbo (2019)", "Lady and the Tramp (2019)", "Pinocchio (2022)", "The Little Mermaid (2023)", "Peter Pan & Wendy (2023)", + "Snow White (2025)", "Lilo & Stitch (2025)", "Alice in Wonderland (2010)", "Alice Through the Looking Glass (2016)", "Christopher Robin (2018)", + "Enchanted (2007)", "Into the Woods (2014)", "Oz the Great and Powerful (2013)", "The Nutcracker and the Four Realms (2018)", + "A Wrinkle in Time (2018)", "Nanny McPhee (2005)", "Nanny McPhee and the Big Bang (2010)", "The Muppets (2011)", "Muppet Treasure Island (1996)", + "The Chronicles of Narnia: The Lion, the Witch and the Wardrobe (2005)", "The Chronicles of Narnia: Prince Caspian (2008)", + "The Chronicles of Narnia: The Voyage of the Dawn Treader (2010)", "Bridge to Terabithia (2007)", "The Spiderwick Chronicles (2008)", + "Paddington (2014)", "Paddington 2 (2017)", "Paddington in Peru (2024)", "Matilda (1996)", "Roald Dahl's Matilda the Musical (2022)", + "The BFG (2016)", "Charlie and the Chocolate Factory (2005)", "Willy Wonka & the Chocolate Factory (1971)", "Wonka (2023)", "Babe (1995)", + "Babe: Pig in the City (1998)", "Stuart Little (1999)", "The Secret Garden (1993)", "A Little Princess (1995)", "Escape to Witch Mountain (1975)") + +/** The server's IMDb IDs for them, so a remake or another film of the same name and year is never taken for one. */ +internal val WonderImdb: Map by lazy { mapOf( + "Mary Poppins (1964)" to "tt0058331", "Mary Poppins Returns (2018)" to "tt5028340", "Pete's Dragon (2016)" to "tt2788732", + "101 Dalmatians (1996)" to "tt0115433", "102 Dalmatians (2000)" to "tt0211181", "Maleficent (2014)" to "tt1587310", + "Maleficent: Mistress of Evil (2019)" to "tt4777008", "Cinderella (2015)" to "tt1661199", "Beauty and the Beast (2017)" to "tt2771200", + "The Jungle Book (2016)" to "tt3040964", "Aladdin (2019)" to "tt6139732", "The Lion King (2019)" to "tt6105098", "Dumbo (2019)" to "tt3861390", + "Lady and the Tramp (2019)" to "tt8096832", "Pinocchio (2022)" to "tt4593060", "The Little Mermaid (2023)" to "tt5971474", + "Peter Pan & Wendy (2023)" to "tt5635026", "Snow White (2025)" to "tt6208148", "Lilo & Stitch (2025)" to "tt11655566", + "Alice in Wonderland (2010)" to "tt1014759", "Alice Through the Looking Glass (2016)" to "tt2567026", "Christopher Robin (2018)" to "tt4575576", + "Enchanted (2007)" to "tt0461770", "Into the Woods (2014)" to "tt2180411", "Oz the Great and Powerful (2013)" to "tt1623205", + "The Nutcracker and the Four Realms (2018)" to "tt5523010", "A Wrinkle in Time (2018)" to "tt1620680", "Nanny McPhee (2005)" to "tt0396752", + "Nanny McPhee and the Big Bang (2010)" to "tt1415283", "The Muppets (2011)" to "tt1204342", "Muppet Treasure Island (1996)" to "tt0117110", + "The Chronicles of Narnia: The Lion, the Witch and the Wardrobe (2005)" to "tt0363771", + "The Chronicles of Narnia: Prince Caspian (2008)" to "tt0499448", "The Chronicles of Narnia: The Voyage of the Dawn Treader (2010)" to "tt0980970", + "Bridge to Terabithia (2007)" to "tt0398808", "The Spiderwick Chronicles (2008)" to "tt0416236", "Paddington (2014)" to "tt1109624", + "Paddington 2 (2017)" to "tt4468740", "Paddington in Peru (2024)" to "tt5822536", "Matilda (1996)" to "tt0117008", + "Roald Dahl's Matilda the Musical (2022)" to "tt3447590", "The BFG (2016)" to "tt3691740", "Charlie and the Chocolate Factory (2005)" to "tt0367594", + "Willy Wonka & the Chocolate Factory (1971)" to "tt0067992", "Wonka (2023)" to "tt6166392", "Babe (1995)" to "tt0112431", + "Babe: Pig in the City (1998)" to "tt0120595", "Stuart Little (1999)" to "tt0164912", "The Secret Garden (1993)" to "tt0108071", + "A Little Princess (1995)" to "tt0113670", "Escape to Witch Mountain (1975)" to "tt0072951") } diff --git a/android/app/src/test/java/tv/orbit/classic/WonderLiveActionTest.kt b/android/app/src/test/java/tv/orbit/classic/WonderLiveActionTest.kt new file mode 100644 index 00000000..25b4a7b9 --- /dev/null +++ b/android/app/src/test/java/tv/orbit/classic/WonderLiveActionTest.kt @@ -0,0 +1,38 @@ +package tv.orbit.classic + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +/** Wonder's identity (Paul, 26 November 2026): storybook cinema and hand-drawn animation, with suitable live-action films; PixelZ is CGI and stop-motion. */ +class WonderLiveActionTest { + private val wonder = ChannelPresets.first { it.number == 612 }.searches + private val pixelz = ChannelPresets.first { it.number == 613 }.searches + + @Test fun theAuditedLiveActionFilmsAreOnWonderEachPinnedByItsImdbId() { + assertEquals(51, WonderLiveAction.size) + assertEquals(WonderLiveAction.size, WonderLiveAction.distinct().size) + WonderLiveAction.forEach { entry -> + assertTrue(entry, entry in wonder) + assertTrue(entry, FilmIdentity.of(entry).imdb?.startsWith("tt") == true) + assertTrue(entry, FilmIdentity.of(entry).year != null) + } + // A remake shares a name and a year with another film: its IMDb ID tells them apart (Zemeckis's Pinocchio, not del Toro's). + assertEquals("tt4593060", FilmIdentity.of("Pinocchio (2022)").imdb) + } + + @Test fun noneIsOnAnotherChannelAndTheHeldOnesWait() { + val others = SmartChannels.filter { it.number != 612 }.flatMap { it.searches + it.channelFilms }.map { seriesKey(FilmIdentity.of(it).label) }.toSet() + WonderLiveAction.forEach { assertFalse(it, seriesKey(FilmIdentity.of(it).label) in others) } + // Mulan (2020) is PG-13, and the borderline seven wait for Paul. + listOf("Mulan (2020)", "Cruella (2021)", "The Parent Trap (1998)", "Freaky Friday (2003)", "The Haunted Mansion (2003)", "Hocus Pocus 2 (2022)", "Holes (2003)", + "The Princess Diaries 2: Royal Engagement (2004)").forEach { assertFalse(it, it in wonder) } + } + + @Test fun storytellingStyleDecidesTheChannelNotTheStudio() { + assertTrue("Chicken Run" in pixelz); assertFalse("Chicken Run" in wonder) + assertTrue("Frozen (2013)" in wonder); assertFalse(pixelz.any { seriesKey(FilmIdentity.of(it).title) == seriesKey("Frozen") }) + listOf("The Secret of NIMH", "Spirited Away", "Song of the Sea").forEach { assertTrue(it, it in wonder) } + } +}