0.89.0: Terra, Wild, Odyssey, Dark Files and Evidence identities
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m47s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m21s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 13:56:13 +00:00
co-authored by Claude Opus 5.5
parent 5bb55685a9
commit 2b3dc5e598
14 changed files with 230 additions and 18 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ android {
applicationId = "tv.orbit.classic"
minSdk = 26
targetSdk = 36
versionCode = 108
versionName = "0.88.0-kids-channels"
versionCode = 109
versionName = "0.89.0-factual-channels"
}
buildFeatures { compose = true }
compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 }
@@ -189,3 +189,74 @@ internal val ToonZDayParts get() = listOf(
DayPart(6, 10, ToonZCore + ToonZSupporting), DayPart(10, 16, ToonZCore + ToonZSupporting), DayPart(16, 18, ToonZTeatime + ToonZCore),
DayPart(18, 0, ToonZCore + ToonZSupporting), DayPart(0, 6, ToonZShows))
internal val ToonZMixed get() = ToonZShows.toSet()
/** Terra, after Eden: natural history watched and understood. The animals and places are the story. */
private val TerraLandmarks = listOf("Life on Earth", "The Living Planet", "The Trials of Life", "The Blue Planet", "Blue Planet II", "Planet Earth", "Planet Earth II", "Planet Earth III",
"Frozen Planet", "Frozen Planet II", "The Life of Mammals", "The Life of Birds", "Life", "Life in the Undergrowth", "Life in Cold Blood", "Our Planet", "Seven Worlds, One Planet",
"Dynasties (2018)", "Africa (2013)", "Wild Isles", "Prehistoric Planet", "The Green Planet", "Green Planet", "The Hunt", "A Perfect Planet", "Mammals (2024)", "Asia (2024)")
private val TerraWider = listOf("Hostile Planet", "Wild China", "Wild Russia", "Nature's Great Events", "Night on Earth", "Tiny World", "Attenborough's Life in Colour",
"Spy in the Wild", "Serengeti", "Eden: Untamed Planet", "Natural World", "Great Barrier Reef with David Attenborough", "Big Cat Diary")
/** Names on the earlier list the library doesn't hold under those spellings, kept in case they turn up. */
private val TerraEarlierNames = listOf("Our Planet II", "Dynasties", "Dynasties II", "Africa", "South Pacific", "Great Barrier Reef")
internal val TerraShows get() = (TerraLandmarks + TerraWider + TerraEarlierNames).distinct()
internal val TerraDayParts get() = listOf(
DayPart(20, 22, TerraLandmarks, days = setOf(DayOfWeek.SUNDAY)),
DayPart(6, 18, TerraShows), DayPart(18, 23, TerraLandmarks), DayPart(23, 6, TerraShows))
/** Wild: people meeting nature and surviving it. The presenters and participants are the story. */
private val WildSurvival = listOf("Man vs. Wild", "Running Wild with Bear Grylls", "Survivorman", "Dual Survival", "Naked and Afraid", "Alone", "Survival with Ray Mears",
"Bear Grylls: Mission Survive")
private val WildEncounters = listOf("The Crocodile Hunter", "Crocodile Hunter Diaries", "River Monsters", "Monster Fish", "Dangerous Encounters with Brady Barr", "Wild Things with Dominic Monaghan",
"Shark Week", "Whale Wars", "Wild Frank", "Running Wild with Bear Grylls: The Challenge", "Expedition Tiger", "Into the Wild Frontier")
private val WildFrontier = listOf("Deadliest Catch", "Ice Road Truckers", "Swamp People", "Ax Men", "Lone Star Law", "Life Below Zero", "Mountain Men")
internal val WildShows get() = (WildSurvival + WildEncounters + WildFrontier + "Dirty Jobs").distinct()
internal val WildDayParts get() = listOf(
// Late on Saturday, Dirty Jobs joins the dangerous jobs as an occasional surprise.
DayPart(22, 6, WildFrontier + "Dirty Jobs", days = setOf(DayOfWeek.SATURDAY)),
DayPart(6, 18, WildEncounters + WildSurvival), DayPart(18, 22, WildSurvival + listOf("The Crocodile Hunter", "River Monsters")),
// Late is where the dangerous jobs live.
DayPart(22, 6, WildFrontier))
internal val WildMixed get() = WildShows.toSet() - setOf("Alone", "Expedition Tiger", "Running Wild with Bear Grylls: The Challenge")
/** Odyssey, after Discovery Science: space, science and engineering, with a weekend of human journeys. */
private val OdysseySpace = listOf("Cosmos", "Cosmos: A Spacetime Odyssey", "Wonders of the Universe", "Wonders of the Solar System", "The Universe", "How the Universe Works",
"Through the Wormhole", "The Sky at Night", "The Planets (2019)", "The Planets", "Wonders of Life", "Human Universe", "Forces of Nature with Brian Cox",
"Brian Cox's Adventures in Space and Time", "Brian Cox: Life of a Universe", "When We Left Earth: The NASA Missions", "Apollo 11", "Horizon")
private val OdysseyEngineering = listOf("Impossible Engineering", "Engineering the Impossible", "Extreme Engineering", "Megastructures", "Big Bigger Biggest", "How Do They Do It?",
"James May's Man Lab", "Connections", "The Ascent of Man", "The Story of Maths", "Walking with Dinosaurs")
/** The long-running series sit in one block each, so they complement the short landmark series rather than crowd them out. */
private val OdysseyDisasters = listOf("Seconds from Disaster", "Air Crash Investigation", "Mayday", "The Universe", "How the Universe Works", "Walking with Dinosaurs")
/** History and travel, kept to a weekend block of human exploration and historical journeys. */
private val OdysseyJourneys = listOf("Civilisation", "Civilizations", "The World at War", "The Vietnam War", "The Civil War", "The Story of India", "Egypt's Lost Cities",
"Rome's Greatest Battles", "Ancient Apocalypse", "Long Way Round", "Long Way Down", "Parts Unknown", "An Idiot Abroad", "Michael Palin's Himalaya", "Pole to Pole",
"Around the World in 80 Days")
/** A drama, so not factual. Kept on the list as Paul chose it, but in no block until it has a scripted-drama home or a special event. */
private val OdysseyAwaitingHome = listOf("Band of Brothers")
internal val OdysseyShows get() = (OdysseySpace + OdysseyEngineering + OdysseyDisasters + OdysseyJourneys + OdysseyAwaitingHome).distinct()
internal val OdysseyDayParts get() = listOf(
DayPart(14, 18, OdysseyJourneys, days = Weekend),
// Reviewed suggestions (the "all" group) join the daytime.
DayPart(6, 18, OdysseyEngineering + OdysseySpace - setOf("Horizon", "Through the Wormhole", "The Sky at Night"), group = "all"), DayPart(18, 23, OdysseySpace), DayPart(23, 6, OdysseyDisasters))
internal val OdysseyMixed get() = setOf("The Universe", "How the Universe Works", "Horizon", "Impossible Engineering", "Engineering the Impossible", "Extreme Engineering", "Megastructures",
"Big Bigger Biggest", "How Do They Do It?", "Seconds from Disaster", "Air Crash Investigation", "Mayday", "Through the Wormhole", "The Sky at Night", "Parts Unknown")
/** Dark Files: real crime by day, mysteries in the evening, the paranormal at night, and long-form case files at weekends. */
private val DarkFilesCaseFiles = listOf("Making a Murderer", "The Staircase", "The Jinx", "The Keepers", "Wild Wild Country", "Conversations with a Killer: The Ted Bundy Tapes",
"Night Stalker: The Hunt for a Serial Killer", "Don't F**k with Cats: Hunting an Internet Killer", "Crime Scene: The Vanishing at the Cecil Hotel", "Tiger King", "Who Killed Sara?",
"Time: The Kalief Browder Story")
internal val DarkFilesDayParts get() = listOf(
DayPart(14, 18, DarkFilesCaseFiles, days = Weekend),
DayPart(6, 18, DarkFilesCrime, group = "day"), DayPart(18, 21, DarkFilesMysteries, group = "evening"), DayPart(21, 6, DarkFilesParanormal, group = "late"))
/** Evidence, after Alibi: crime drama only. Procedurals by day, British detectives in the evening, darker drama late. */
private val EvidenceProcedurals = listOf("CSI: Crime Scene Investigation", "NCIS", "CSI: Miami", "CSI: NY", "Law & Order", "Law & Order: Special Victims Unit", "Criminal Minds", "Bones",
"Castle", "The Mentalist", "Monk", "Hawaii Five-0", "Blue Bloods")
private val EvidenceDetectives = listOf("Midsomer Murders", "Inspector Morse", "Lewis", "Vera", "A Touch of Frost", "Dalziel and Pascoe", "Taggart", "Death in Paradise", "Columbo")
private val EvidenceDark = listOf("Luther", "Line of Duty", "Happy Valley", "Broadchurch", "Dexter", "The Wire", "Silent Witness", "Waking the Dead", "Sherlock")
private val EvidenceSundayMystery = listOf("Inspector Morse", "Lewis", "A Touch of Frost", "Midsomer Murders", "Vera", "Columbo", "Sherlock")
internal val EvidenceShows get() = (EvidenceProcedurals + EvidenceDetectives + EvidenceDark).distinct()
internal val EvidenceDayParts get() = listOf(
DayPart(20, 22, EvidenceSundayMystery, days = setOf(DayOfWeek.SUNDAY)),
DayPart(6, 18, EvidenceProcedurals + listOf("Columbo"), group = "all"), DayPart(18, 21, EvidenceDetectives), DayPart(21, 1, EvidenceDark), DayPart(1, 6, EvidenceProcedurals))
/** Serial dramas tell a story, so they stay in order. */
internal val EvidenceMixed get() = EvidenceShows.toSet() - setOf("Line of Duty", "Broadchurch", "Happy Valley", "The Wire", "Dexter", "Luther", "Sherlock")
@@ -35,9 +35,7 @@ internal val ChannelPresets = listOf(
ChannelPreset(605, "ToonZ", ToonZShows, smartOnly = true),
ChannelPreset(604, "Rewind", RewindShows, smartOnly = true),
ChannelPreset(603, "Orbit X", OrbitXShows, smartOnly = true),
ChannelPreset(107, "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", "Dexter", "Sherlock", "Broadchurch", "Death in Paradise", "Lewis", "Inspector Morse",
"Dalziel and Pascoe", "Happy Valley", "The Wire", "Hawaii Five-0", "Blue Bloods"), smartOnly = true),
ChannelPreset(107, "Evidence", EvidenceShows, smartOnly = true),
ChannelPreset(204, "Dark Files", DarkFilesCrime + DarkFilesMysteries + DarkFilesParanormal, smartOnly = true),
ChannelPreset(308, "Detour", listOf("American Pie", "American Pie 2", "American Wedding", "American Reunion", "Road Trip", "EuroTrip", "Harold & Kumar Go to White Castle", "Harold & Kumar Escape from Guantanamo Bay",
"A Very Harold & Kumar Christmas", "The Hangover", "The Hangover Part II", "The Hangover Part III", "Van Wilder", "National Lampoon's Van Wilder", "Van Wilder: The Rise of Taj", "Van Wilder 2: The Rise of Taj", "Old School", "Sex Drive", "Accepted", "Superbad", "Pineapple Express",
@@ -47,8 +45,7 @@ internal val ChannelPresets = listOf(
"The Bank Job", "The Long Good Friday", "Human Traffic", "Twin Town", "Shallow Grave", "Four Lions", "Severance", "Attack the Block", "The Descent", "In Bruges", "Filth", "Calibre", "Sightseers", "Sweet Sixteen", "Withnail & I", "The Full Monty", "Billy Elliot", "Bend It Like Beckham", "Kes", "Get Carter", "The Italian Job", "Quadrophenia", "Scum", "Made in Britain", "Nil by Mouth", "Gangster No. 1", "Mean Machine", "Kidulthood", "Adulthood", "Harry Brown", "The Krays", "Legend", "Bronson", "Eden Lake", "Kill List", "A Field in England", "Fish Tank", "The Inbetweeners Movie", "The Inbetweeners 2", "Alan Partridge", "Monty Python and the Holy Grail", "Life of Brian", "Monty Python's The Meaning of Life", "Ratcatcher", "Control", "Cockneys vs Zombies", "The Guard", "Hunger", "Lock Up", "Rise of the Footsoldier: Part II", "St Trinian's", "Death at a Funeral", "Hot Fuzz", "Kingsman: The Golden Circle", "Brassed Off", "East Is East", "Secrets & Lies", "My Beautiful Laundrette", "Local Hero", "Gregory's Girl", "Rita, Sue and Bob Too", "Educating Rita", "Shirley Valentine", "The Wicker Man", "Pride", "Sing Street", "Starter for 10", "Tyrannosaur", "Wild Bill", "Yardie"), smartOnly = true, films = true),
ChannelPreset(611, "Orbit Junior", listOf("Thomas the Tank Engine & Friends", "Thomas & Friends", "Fireman Sam", "Postman Pat", "Brum", "Rosie and Jim", "Bob the Builder", "Pingu", "Noddy", "Teletubbies", "Tweenies", "Tots TV",
"Pingu in the City", "Peppa Pig", "Bluey", "Bagpuss", "The Clangers", "Camberwick Green", "Trumpton", "Button Moon", "Rainbow", "Balamory", "Fimbles"), smartOnly = true),
ChannelPreset(203, "Orbit Wild", listOf("The Crocodile Hunter", "Crocodile Hunter Diaries", "Deadliest Catch", "River Monsters", "Man vs. Wild", "Running Wild with Bear Grylls", "Survivorman", "Dual Survival", "Naked and Afraid", "Ice Road Truckers",
"Swamp People", "Wild Things with Dominic Monaghan", "Lone Star Law", "Alone", "Ax Men", "Monster Fish", "Dirty Jobs", "Shark Week", "Whale Wars", "Dangerous Encounters with Brady Barr"), smartOnly = true),
ChannelPreset(203, "Orbit Wild", WildShows, smartOnly = true),
ChannelPreset(102, "Orbit 2", Orbit2Shows, smartOnly = true),
ChannelPreset(612, "Wonder", listOf("Snow White and the Seven Dwarfs", "Pinocchio", "Dumbo", "Bambi", "Cinderella", "Alice in Wonderland", "Peter Pan", "Lady and the Tramp", "Sleeping Beauty", "One Hundred and One Dalmatians", "The Jungle Book", "The Aristocats", "Robin Hood",
"The Fox and the Hound", "The Little Mermaid", "Beauty and the Beast", "Aladdin", "The Lion King", "Pocahontas", "The Hunchback of Notre Dame", "Hercules", "Mulan", "Tarzan", "The Emperor's New Groove", "Atlantis: The Lost Empire", "Lilo & Stitch", "Treasure Planet", "Brother Bear", "The Princess and the Frog",
@@ -62,7 +59,7 @@ internal val ChannelPresets = listOf(
ChannelPreset(302, "Orbit Action", listOf("Die Hard", "Die Hard 2", "Die Hard with a Vengeance", "Lethal Weapon", "Lethal Weapon 2", "Commando", "Rambo: First Blood", "First Blood", "Rocky", "Cobra", "Tango & Cash", "Demolition Man", "Speed", "The Rock", "Con Air", "Face/Off", "Heat", "Point Break", "Bad Boys", "Enter the Dragon", "Rush Hour", "Police Story", "Bloodsport", "Kickboxer", "Under Siege", "Hard Target", "Mortal Kombat", "Blade", "John Wick", "John Wick: Chapter 2", "Taken", "The Raid", "Mad Max", "Mad Max 2", "Mad Max: Fury Road", "The Bourne Identity", "The Bourne Supremacy", "The Bourne Ultimatum", "Casino Royale", "GoldenEye", "Mission: Impossible", "Gladiator", "The Fast and the Furious", "The Transporter", "Crank", "Kill Bill: Vol. 1", "Kill Bill: Vol. 2", "The Expendables", "Dredd", "Sicario", "Léon: The Professional", "Live Free or Die Hard", "A Good Day to Die Hard", "Lethal Weapon 3", "Lethal Weapon 4", "Rambo: First Blood Part II", "Rambo III", "Rambo", "Rocky II", "Rocky III", "Rocky IV", "Creed", "Bad Boys II", "Rush Hour 2", "Rush Hour 3", "2 Fast 2 Furious", "Fast Five", "Furious 7", "John Wick: Chapter 3 - Parabellum", "John Wick: Chapter 4", "The Equalizer", "Man on Fire", "Taken 2", "Collateral", "Ronin", "Hard Boiled", "The Killer", "Drunken Master", "Project A", "The Way of the Dragon", "Fist of Fury", "The Big Boss", "Ong-Bak", "The Raid 2", "Escape Plan", "The Expendables 2", "Kingsman: The Secret Service", "Tomorrow Never Dies", "The World Is Not Enough", "Die Another Day", "Quantum of Solace", "Goldfinger", "Dr. No", "From Russia with Love", "Thunderball", "Licence to Kill", "The Living Daylights", "Mr. & Mrs. Smith", "Olympus Has Fallen", "London Has Fallen", "White House Down", "Air Force One", "Cliffhanger", "Passenger 57", "Timecop", "Universal Soldier", "Road House", "Crank"), smartOnly = true, films = true),
ChannelPreset(307, "Orbit Romance", listOf("Pretty Woman", "When Harry Met Sally...", "Sleepless in Seattle", "You've Got Mail", "Notting Hill", "Four Weddings and a Funeral", "Love Actually", "Bridget Jones's Diary", "About Time", "Titanic", "Ghost", "Dirty Dancing", "The Notebook", "Crazy, Stupid, Love.", "10 Things I Hate About You", "She's All That", "Clueless", "The Holiday", "The Proposal", "Hitch", "Maid in Manhattan", "Runaway Bride", "My Best Friend's Wedding", "While You Were Sleeping", "Serendipity", "How to Lose a Guy in 10 Days", "13 Going on 30", "The Wedding Singer", "50 First Dates", "There's Something About Mary", "La La Land", "The Princess Diaries", "Mamma Mia!", "Grease", "Casablanca", "Roman Holiday", "Breakfast at Tiffany's", "Amélie", "Pride & Prejudice", "Sense and Sensibility", "Crazy Rich Asians", "Me Before You", "Forrest Gump", "Jerry Maguire", "Shakespeare in Love", "Moulin Rouge!", "Bridget Jones: The Edge of Reason", "Hope Floats", "Sweet Home Alabama", "The Wedding Planner", "Legally Blonde", "Miss Congeniality", "Never Been Kissed", "A Walk to Remember", "The Lake House", "P.S. I Love You", "Dear John", "Valentine's Day", "New Year's Eve", "He's Just Not That Into You", "27 Dresses", "Knocked Up", "Forgetting Sarah Marshall", "(500) Days of Summer", "Eternal Sunshine of the Spotless Mind", "Before Sunrise", "Before Sunset", "Sabrina", "An Officer and a Gentleman", "Top Hat", "Singin' in the Rain", "West Side Story", "My Fair Lady", "The Sound of Music", "Gone with the Wind", "City of Angels", "The Bodyguard", "French Kiss", "Green Card", "Working Girl", "Moonstruck", "Annie Hall", "Mamma Mia! Here We Go Again", "About a Boy", "Music and Lyrics", "Two Weeks Notice", "Just Like Heaven", "What Women Want", "Something's Gotta Give", "It's Complicated", "Easy A", "Love & Basketball", "The Best Man", "Pride and Prejudice", "Emma", "Atonement", "Brooklyn", "The Big Sick"), smartOnly = true, films = true),
ChannelPreset(301, "Orbit Premiere", listOf("Jurassic Park", "The Lost World: Jurassic Park", "Raiders of the Lost Ark", "Indiana Jones and the Temple of Doom", "Indiana Jones and the Last Crusade", "Superman", "Batman", "Batman Returns", "Batman Begins", "The Dark Knight", "The Dark Knight Rises", "Spider-Man", "Spider-Man 2", "X-Men", "X2", "Iron Man", "The Avengers", "Avengers: Infinity War", "Avengers: Endgame", "Black Panther", "Guardians of the Galaxy", "The Lord of the Rings: The Fellowship of the Ring", "The Lord of the Rings: The Two Towers", "The Lord of the Rings: The Return of the King", "Harry Potter and the Philosopher's Stone", "Pirates of the Caribbean: The Curse of the Black Pearl", "Avatar", "Transformers", "Armageddon", "Twister", "Top Gun: Maverick", "The Mummy", "The Mask of Zorro", "Braveheart", "Skyfall", "Mission: Impossible - Fallout", "King Kong", "Godzilla", "Pacific Rim", "Wonder Woman", "Oppenheimer", "Spider-Man: No Way Home", "Deadpool", "Logan", "Captain America: The Winter Soldier", "Captain America: Civil War", "Thor: Ragnarok", "Guardians of the Galaxy Vol. 2", "Avengers: Age of Ultron", "Doctor Strange", "Spider-Man: Homecoming", "Spider-Man 3", "Jurassic World", "Jurassic Park III", "Man of Steel", "Aquaman", "X-Men: Days of Future Past", "X-Men: First Class", "Harry Potter and the Chamber of Secrets", "Harry Potter and the Prisoner of Azkaban", "Harry Potter and the Goblet of Fire", "Harry Potter and the Order of the Phoenix", "Harry Potter and the Half-Blood Prince", "Harry Potter and the Deathly Hallows: Part 1", "Harry Potter and the Deathly Hallows: Part 2", "Pirates of the Caribbean: Dead Man's Chest", "Pirates of the Caribbean: At World's End", "The Hobbit: An Unexpected Journey", "The Hobbit: The Desolation of Smaug", "The Hobbit: The Battle of the Five Armies", "Top Gun", "Mission: Impossible - Ghost Protocol", "Mission: Impossible - Rogue Nation", "The Mummy Returns", "Transformers: Revenge of the Fallen", "Transformers: Dark of the Moon", "World War Z", "I Am Legend", "Ready Player One", "Jumanji: Welcome to the Jungle", "National Treasure", "The Da Vinci Code", "Ocean's Eleven", "Ocean's Twelve", "Ocean's Thirteen", "Cast Away", "Spectre", "No Time to Die", "The Greatest Showman", "Saving Private Ryan", "Apollo 13", "The Fugitive", "Sherlock Holmes", "Inglourious Basterds", "The Revenant", "Dunkirk", "Joker", "Barbie"), smartOnly = true, films = true),
ChannelPreset(202, "Odyssey", listOf("Cosmos", "Cosmos: A Spacetime Odyssey", "Wonders of the Universe", "Wonders of the Solar System", "The Universe", "How the Universe Works", "Civilisation", "Civilizations", "Connections", "The Ascent of Man", "The World at War", "Band of Brothers", "The Vietnam War", "The Civil War", "Apollo 11", "Horizon", "Seconds from Disaster", "Air Crash Investigation", "Mayday", "Engineering the Impossible", "Impossible Engineering", "Extreme Engineering", "Big Bigger Biggest", "Ancient Apocalypse", "Rome's Greatest Battles", "The Story of India", "Egypt's Lost Cities", "Long Way Round", "Long Way Down", "Parts Unknown", "An Idiot Abroad", "Michael Palin's Himalaya", "Pole to Pole", "Around the World in 80 Days", "James May's Man Lab", "The Story of Maths", "Walking with Dinosaurs"), smartOnly = true),
ChannelPreset(202, "Odyssey", OdysseyShows, smartOnly = true),
ChannelPreset(401, "Ring X", RingXMondayNight + RingXImpact + RingXAew + RingXVault, smartOnly = true))
/** A fallback for a channel with no old loop: its first episodes, in turn. Used only outside its plan. */
@@ -60,10 +60,8 @@ internal val SmartChannels = listOf(
SuggestionRule("movie", "Movie Night", "Movie", listOf("Animation", "Action"), 1985..2015, 7f, setOf("NC-17", "X"), 30, setOf("Documentary", "Family"), 60),
SuggestionRule("day", "Daytime", "Series", listOf("Animation", "Action"), 1985..2015, 7f, setOf("TV-MA"), 30),
SuggestionRule("night", "Evening", "Series", listOf("Anime", "Action"), 1985..2020, 7f, setOf("TV-MA"), 30))),
ChannelProgramming(201, "Terra", listOf("The Blue Planet", "Blue Planet II", "Planet Earth", "Planet Earth II", "Planet Earth III", "Frozen Planet", "Frozen Planet II",
"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),
// Reads every show on its list, as the other curated channels do. Its old limit of 20 dates from when the list was short.
ChannelProgramming(201, "Terra", TerraShows, seriesCount = TerraShows.size, finishTogether = true, exactTitles = true, dayParts = TerraDayParts),
ChannelProgramming(TOTS_NUMBER, "Tots", TotsShows, seriesCount = 40, finishTogether = true, exactTitles = true, dayParts = TotsDayParts, shuffleEpisodes = true),
ChannelProgramming(106, "Paradox", ParadoxShows, seriesCount = 20, finishTogether = true, exactTitles = true, dayParts = ParadoxDayParts, shuffleTitles = ParadoxStandalones.toSet())) +
ChannelPresets.filter { it.smartOnly }.map { ChannelProgramming(it.number, it.name, it.searches, seriesCount = if (it.films) it.searches.size else 60, finishTogether = !it.films, exactTitles = true,
@@ -72,12 +70,12 @@ internal val SmartChannels = listOf(
/** Shows that play in a mixed order on channels whose identity is agreed. See ChannelIdentities.kt. */
private val SmartChannelMixed: Map<Int, Set<String>> get() = mapOf(101 to Orbit1Mixed, 102 to Orbit2Mixed, 103 to ThreeMixed, 104 to GoldMixed, 105 to RiotMixed,
602 to HeroesMixed, 603 to OrbitXMixed, 604 to RewindMixed, 605 to ToonZMixed)
602 to HeroesMixed, 603 to OrbitXMixed, 604 to RewindMixed, 605 to ToonZMixed,
203 to WildMixed, 202 to OdysseyMixed, 107 to EvidenceMixed)
/** Dark Files, from the programming bible: crime by day, mysteries early evening, the paranormal late. */
private val SmartChannelParts: Map<Int, List<DayPart>> get() = mapOf(101 to Orbit1DayParts, 102 to Orbit2DayParts, 103 to ThreeDayParts, 104 to GoldDayParts, 105 to RiotDayParts,
602 to HeroesDayParts, 603 to OrbitXDayParts, 604 to RewindDayParts, 605 to ToonZDayParts, 204 to listOf(
DayPart(6, 18, DarkFilesCrime, group = "day"), DayPart(18, 21, DarkFilesMysteries, group = "evening"), DayPart(21, 6, DarkFilesParanormal, group = "late")),
602 to HeroesDayParts, 603 to OrbitXDayParts, 604 to RewindDayParts, 605 to ToonZDayParts, 204 to DarkFilesDayParts, 203 to WildDayParts, 202 to OdysseyDayParts, 107 to EvidenceDayParts,
// Ring X, from the bible: each weeknight's own show, and the whole vault the rest of the week.
401 to listOf(DayPart(0, 24, RingXMondayNight, days = setOf(java.time.DayOfWeek.MONDAY)), DayPart(0, 24, RingXImpact, days = setOf(java.time.DayOfWeek.TUESDAY)),
DayPart(0, 24, RingXAew, days = setOf(java.time.DayOfWeek.WEDNESDAY))))
@@ -66,7 +66,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.88.0\"")
connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.89.0\"")
request.token?.let { connection.setRequestProperty("X-Emby-Token", it) }
if (request.method == "POST") {
val bytes = request.body.orEmpty().toByteArray(Charsets.UTF_8)
@@ -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.88.0")
next.setRequestProperty("User-Agent", "OrbitTV/0.89.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()) {
@@ -104,4 +104,20 @@ class ChannelIdentityTest {
val toonz = plan(605, 7).entries.groupingBy { it.media.item.title.substringBefore(" / ") }.eachCount()
assertTrue("$toonz", toonz.getValue("Tom and Jerry") > toonz.getValue("Top Cat"))
}
@Test fun factualChannelsKeepTheirIdentities() {
val terra = SmartChannels.first { it.number == 201 }
assertEquals("Terra reads its whole list", terra.searches.size, terra.seriesCount)
val sunday = ZonedDateTime.of(2026, 11, 15, 20, 30, 0, 0, zone).toInstant().toEpochMilli()
assertTrue(dayPartChoice(library(terra.searches, 50), terra.dayParts, sunday, zone).second.startsWith("event"))
val odyssey = SmartChannels.first { it.number == 202 }
assertTrue("Band of Brothers waits for a drama home", odyssey.dayParts.none { part -> part.titles.any { seriesKey(it) == seriesKey("Band of Brothers") } })
assertTrue(seriesKey("Band of Brothers") in odyssey.searches.map(::seriesKey))
val wild = plan(203, 42)
assertTrue(titlesWhere(wild) { it.dayOfWeek != java.time.DayOfWeek.SATURDAY && (it.hour >= 22 || it.hour < 6) }.none { it == "Dirty Jobs" })
val evidence = plan(107, 44)
val lineOfDuty = evidence.entries.filter { it.media.item.title.startsWith("Line of Duty") }.map { it.mark.episode }
assertEquals(lineOfDuty.sorted(), lineOfDuty)
assertTrue(titlesWhere(evidence) { it.hour in 6..17 }.none { it == "Luther" })
}
}
+27
View File
@@ -0,0 +1,27 @@
# Orbit TV 0.89.0: Terra, Wild, Odyssey, Dark Files and Evidence identities
Configuration only, on the existing scheduler. Lists and blocks in ChannelIdentities.kt; reasons in docs/channels.
## Terra's limit
Terra stopped loading after 20 shows. The limit was set in 0.41.0 when its list was short, to cap Emby requests in early testing. Terra now reads its whole curated list, like the other curated channels, so the list itself is the limit. Longest top-up in the replay: 17 ms with 39 shows (was 7 ms with 20).
## Catalogue
Every new title was matched against a read-only copy of the box's catalogue, using the library's own spelling, and checked for second entries under another name (Prehistoric Planet has two; only one is asked for). Not added: Bear Grylls Wild Adventure (interactive), Deadly 60 (children's), Gold Rush (mining), Prehistoric Planet (2022) (duplicate).
## Replay
Four weeks of hourly top-ups from the box's real pools, plans and progress for all smart channels, after phasing in from the committed plans, against today's setup. New titles not yet read used stand-ins with public episode counts (Terra 19 series including Natural World as 100 episodes; Wild 8; Odyssey 11).
| Channel | Episodes repeated within 7 days | within a day | Distinct episodes / programmes | Shows unseen in week one |
|---|---|---|---|---|
| Terra | 33 (today 155) | 0 (0) | 315 / 770 (155 / 761) | 1 (0) |
| Wild | 0 (0) | 0 (0) | 837 / 852 (913 / 913) | 2 (0) |
| Odyssey | 23 (58) | 0 (0) | 741 / 948 (627 / 840) | 13 (15) |
| Dark Files | 1 (0) | 0 (0) | 871 / 945 (993 / 993) | 8 (8) |
| Evidence | 0 (0) | 0 (0) | 792 / 792 (639 / 639) | 1 (1) |
- Every channel: committed plans unchanged, no gaps, no programme outside its block, no episode out of order, no fallbacks.
- Block edges: a block opens with the first programme after its hour, up to 58 minutes late after a feature-length episode (Evidence). Nothing is cut or overlaps.
- Shows unseen in week one are short series resting after their run; Odyssey's Band of Brothers is deliberately in no block.
- Known limit, the same as ToonZ: long series take most of the airtime while short series rest for weeks. Over four weeks Alone and Naked and Afraid had about 120 hours each on Wild, and The Universe and How the Universe Works led Odyssey, while Running Wild, Dual Survival, Cosmos and the Wonders series aired rarely. Blocks set the identity; how often a show airs follows its episode count. This belongs to the fair rotation investigation in docs/roadmap.md.
Unit tests: 334 passed. Lint passed. Not installed.
+1 -1
View File
@@ -18,6 +18,6 @@ How weighting works today: within a block, every show gets an equal turn, and fr
Film channels follow their own model (genre, rest period, first Orbit screenings), not the 70/20/10 guide.
Documents so far: [Paradox](paradox.md) (agreed), [Orbit 1](orbit-1.md) (agreed), [Orbit 2](orbit-2.md) (agreed), [Orbit Three](orbit-three.md), [Orbit Gold](orbit-gold.md) and [Riot](riot.md) (agreed in principle, installed in 0.87.0), [Vortex](vortex.md), [Heroes](heroes.md), [Orbit X](orbit-x.md), [Rewind](rewind.md) and [ToonZ](toonz.md) (agreed in principle, 0.88.0).
Documents so far: [Paradox](paradox.md) (agreed), [Orbit 1](orbit-1.md) (agreed), [Orbit 2](orbit-2.md) (agreed), [Orbit Three](orbit-three.md), [Orbit Gold](orbit-gold.md) and [Riot](riot.md) (agreed in principle, installed in 0.87.0), [Vortex](vortex.md), [Heroes](heroes.md), [Orbit X](orbit-x.md), [Rewind](rewind.md) and [ToonZ](toonz.md) (agreed in principle, installed in 0.88.0), [Terra](terra.md), [Orbit Wild](wild.md), [Odyssey](odyssey.md), [Dark Files](dark-files.md) and [Evidence](evidence.md) (agreed, 0.89.0).
Historical inspiration: real UK channels (Sky One, Trouble, Challenge TV, BBC Two teatime, Bravo, early BBC Three, UK Gold, Cartoon Network UK, Toonami UK, Fox Kids UK, Boomerang) inform the feel. Documents separate verified historical programming, with sources, from shows that only fit the style. Orbit takes the feeling, not a frozen copy of an old schedule.
+19
View File
@@ -0,0 +1,19 @@
# Dark Files (204): crime and the unexplained
**Status:** agreed with Paul 3 November 2026, configured in 0.89.0 (ChannelIdentities.kt), awaiting his OK to install.
**Identity:** real cases and real mysteries: true crime by day, mysteries in the evening, the paranormal at night. **Test against Evidence:** real cases are Dark Files; scripted detectives are Evidence.
**History:** Crime & Investigation UK inspires the feel; no source page was found, so this is style only.
**Core:** Forensic Files, Cold Case Files, Snapped, Unsolved Mysteries, Most Haunted, Ghost Adventures, Paranormal Witness.
**Supporting:** the rest of the crime, mystery and paranormal lists (lists in ChannelPresets.kt).
**Time of day:** 06:00 to 18:00 true crime. 18:00 to 21:00 mysteries. 21:00 to 06:00 paranormal. **Case Files**, Saturday and Sunday 14:00 to 18:00: long-form documentary series in order (Making a Murderer, The Staircase, The Jinx, The Keepers, Wild Wild Country, Conversations with a Killer, Night Stalker, Don't F**k with Cats, Crime Scene: The Vanishing at the Cecil Hotel, Tiger King, Who Killed Sara?, Time: The Kalief Browder Story). It sits in the afternoon so the paranormal nights stay whole.
**0.87.0 check:** before the rotation fix, seven mysteries shows were missing from a planned week; after it, those seven all air. The shows still unseen in a week are short series (3 to 8 episodes) resting after their run.
**Order:** in order.
**New arrivals:** true crime, unsolved mysteries and paranormal investigation.
+21
View File
@@ -0,0 +1,21 @@
# Evidence (107): crime drama
**Status:** agreed with Paul 3 November 2026, configured in 0.89.0 (ChannelIdentities.kt), awaiting his OK to install.
**Identity:** crime drama only, after Alibi. **Test against Dark Files:** scripted detectives are Evidence; real cases are Dark Files.
**History, verified:** UKTV Drama was renamed Alibi on 7 October 2008 and changed to crime drama only, with other dramas moved to Gold and Watch. Source: Wikipedia, U&Alibi, read 3 November 2026.
**Core:** CSI, NCIS, Law & Order, Criminal Minds, Bones, Midsomer Murders, Inspector Morse, A Touch of Frost, Columbo, Vera.
**Supporting:** CSI: Miami, CSI: NY, Law & Order: SVU, Castle, The Mentalist, Monk, Hawaii Five-0, Blue Bloods, Lewis, Dalziel and Pascoe, Taggart, Death in Paradise, and the darker dramas.
**Time of day:** 06:00 to 18:00 American procedurals (and Columbo). 18:00 to 21:00 British feature-length detectives. 21:00 to 01:00 darker drama: Luther, Line of Duty, Happy Valley, Broadchurch, Dexter, The Wire, Silent Witness, Waking the Dead, Sherlock. 01:00 to 06:00 procedurals. **Sunday Mystery**, Sunday 20:00 to 22:00, a feature-length detective.
**Long episodes:** feature-length episodes run up to 106 minutes, so a block can open up to about an hour after its hour when the previous programme runs on. Nothing is cut and nothing overlaps.
**Order:** procedurals and standalone detectives mix. Serial dramas run in order: Line of Duty, Broadchurch, Happy Valley, The Wire, Dexter, Luther, Sherlock.
**Thin copies to check in Emby:** Law & Order: SVU 13 episodes, Criminal Minds 40, Sherlock 3.
**New arrivals:** crime drama, procedurals and detective series.
+21
View File
@@ -0,0 +1,21 @@
# Odyssey (202): science and discovery
**Status:** agreed with Paul 3 November 2026, configured in 0.89.0 (ChannelIdentities.kt), awaiting his OK to install.
**Identity:** space, astronomy, engineering and scientific mysteries, with a weekend of human exploration.
**History, verified:** Discovery Science began as Discovery Sci-Trek on 1 October 1998, renamed Discovery Science Channel in 2003 and Discovery Science in 2008. Its programmes included Extreme Engineering, How It's Made, Through the Wormhole and Universe. Source: Wikipedia, Discovery Science (European TV channel), read 3 November 2026.
**Core:** The Universe, How the Universe Works, Cosmos, Wonders of the Universe and Solar System, Horizon, Through the Wormhole, The Sky at Night, The Planets (2019), Wonders of Life, Human Universe, Forces of Nature, Brian Cox's Adventures in Space and Time, When We Left Earth, Impossible and Extreme Engineering, Megastructures.
**Supporting:** Connections, The Ascent of Man, The Story of Maths, Walking with Dinosaurs, Seconds From Disaster, Mayday, James May's Man Lab, How Do They Do It?, The Planets (1999), Brian Cox: Life of a Universe.
**Journeys** (weekend block): Civilisation, The World at War, The Civil War, The Story of India, Long Way Round, Long Way Down, An Idiot Abroad, Around the World in 80 Days and the other history and travel titles: human exploration and historical journeys.
**Time of day:** 06:00 to 18:00 engineering and how things work, with the shorter space series. 18:00 to 23:00 space and science, including Horizon, Through the Wormhole and The Sky at Night. 23:00 to 06:00 scientific mysteries and disasters. **Journeys**, Saturday and Sunday 14:00 to 18:00.
**Band of Brothers:** a drama, so not factual. It stays on Odyssey's list as Paul chose it, but sits in no block, so it doesn't air here. Flagged for a future scripted-drama home or special event.
**Order:** long-running and episodic series mix (The Universe, How the Universe Works, Horizon, the engineering series, Seconds From Disaster, Mayday, Through the Wormhole, The Sky at Night). Presenter-led landmark series run in order.
**New arrivals:** space, science, engineering and discovery; history and travel go to Journeys.
+21
View File
@@ -0,0 +1,21 @@
# Terra (201): natural history
**Status:** agreed with Paul 3 November 2026, configured in 0.89.0 (ChannelIdentities.kt), awaiting his OK to install.
**Identity:** nature watched and understood. The animals and places are the story. **Test against Wild:** if the people are the story, it belongs on Wild.
**History, verified:** UKTV Documentary became Eden on 26 January 2009, changing from all documentaries to mainly documentaries about the natural environment, with other documentaries moved to UKTV History and UKTV People. Source: Wikipedia, U&Eden, read 3 November 2026.
**Core:** the Attenborough and BBC landmarks: Life on Earth, The Living Planet, The Trials of Life, The Blue Planet and Blue Planet II, Planet Earth I to III, Frozen Planet I and II, The Life of Mammals, The Life of Birds, Life, Life in the Undergrowth, Life in Cold Blood, Our Planet, Seven Worlds, One Planet, Dynasties, Africa, Wild Isles, Prehistoric Planet, The Green Planet, The Hunt, A Perfect Planet, Mammals, Asia.
**Supporting:** Hostile Planet, Wild China, Wild Russia, Nature's Great Events, Night on Earth, Tiny World, Attenborough's Life in Colour, Spy in the Wild, Serengeti, Eden: Untamed Planet, Natural World, Great Barrier Reef with David Attenborough, Big Cat Diary.
**Time of day:** 06:00 to 18:00 all of it. 18:00 to 23:00 the landmarks. 23:00 to 06:00 all of it. **Sunday landmark**, Sunday 20:00 to 22:00, a landmark series (in the spirit of BBC One's Sunday-night premieres; style, not verified history).
**Order:** in order throughout.
**Catalogue notes:** library spellings used: "Africa (2013)", "Dynasties (2018)", "Mammals (2024)", "Asia (2024)", "Great Barrier Reef with David Attenborough". The library has a second entry, "Prehistoric Planet (2022)"; only "Prehistoric Planet" is asked for, so it can't air twice as two shows. Old names that don't match (Our Planet II, Dynasties II, South Pacific and others) stay on the list in case they appear.
**The old 20-show limit:** set in 0.41.0, when Terra's list was short and the limit capped requests to Emby during early testing. It stopped Terra loading the end of its longer list. Terra now reads its whole curated list, as the other curated channels do, rather than another fixed number.
**New arrivals:** landmark natural history, wildlife, oceans and ecosystems.
+21
View File
@@ -0,0 +1,21 @@
# Orbit Wild (203): survival and adventure
**Status:** agreed with Paul 3 November 2026, configured in 0.89.0 (ChannelIdentities.kt), awaiting his OK to install.
**Identity:** people meeting nature and surviving it: presenters, expeditions, danger, endurance. **Test against Terra:** if the animals and places are the story, it belongs on Terra.
**History:** Animal Planet UK and similar channels inspire the feel; no source page was found, so this is style only.
**Core:** Man vs. Wild, Running Wild with Bear Grylls, Survivorman, Dual Survival, Naked and Afraid, Alone, Survival with Ray Mears, Bear Grylls: Mission Survive, The Crocodile Hunter, River Monsters.
**Supporting:** Wild Things with Dominic Monaghan, Shark Week, Whale Wars, Wild Frank, Running Wild with Bear Grylls: The Challenge, Expedition Tiger, Into the Wild Frontier, and the frontier and dangerous-jobs shows: Deadliest Catch, Ice Road Truckers, Swamp People, Ax Men, Lone Star Law, Life Below Zero, Mountain Men.
**Surprise:** Dirty Jobs, late on Saturday only.
**Time of day:** 06:00 to 18:00 encounters and survival. 18:00 to 22:00 survival, with The Crocodile Hunter and River Monsters. 22:00 to 06:00 frontier and dangerous jobs; on Saturday Dirty Jobs joins them.
**Order:** episodic shows mix. Alone, Expedition Tiger and Running Wild: The Challenge run in order.
**Not added:** Bear Grylls Wild Adventure (an interactive special), Deadly 60 (a children's show), Gold Rush (mining, not wilderness). Crocodile Hunter Diaries, Monster Fish and Dangerous Encounters aren't in the library; their names stay on the list.
**New arrivals:** survival, expeditions, animal encounters with presenters, and life on the frontier.