Silver Screen (312), Orbit Stories (112) and Frontline (313)

Paul, 23 November 2026.
- Silver Screen: 109 golden-age films by year and IMDb ID, five blocks, Hitchcock Nights on
  Friday evenings and a Sunday epic.
- Orbit Stories: 48 drama series in story order, five dayparts and late-only mature series,
  with Casualty and Holby City as supporting tiers.
- Frontline: war cinema across every era (98 films, with 25 modern additions he asked for:
  American Sniper, Warfare and more), The Cost of War as its signature evening, and a nightly
  military-series run: TV-14 and under in the afternoon, the TV-MA series after 01:00.
Chair briefs, brand-kit logos, corner logos and idents (each with its own sound), the kit's end
frames as backgrounds; channel docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 20:01:50 +00:00
co-authored by Claude Opus 5.5
parent a71d705372
commit ddc77bd8f0
28 changed files with 326 additions and 14 deletions
@@ -24,6 +24,9 @@ internal object ChannelBrands {
TOTS_NUMBER to ChannelBranding("orbit-tots", "Orbit Tots", R.drawable.orbit_tots_epg, R.drawable.orbit_one_background, R.drawable.orbit_tots_bug, ChannelCategory.Kids),
203 to ChannelBranding("orbit-wild", "Orbit Wild", R.drawable.orbit_wild_epg, R.drawable.orbit_one_background, R.drawable.orbit_wild_bug, ChannelCategory.Documentaries),
109 to ChannelBranding("orbit-signature", "Orbit Signature", R.drawable.orbit_signature_epg, R.drawable.orbit_signature_background, R.drawable.orbit_signature_bug, ChannelCategory.Entertainment),
STORIES_NUMBER to ChannelBranding("orbit-stories", "Orbit Stories", R.drawable.orbit_stories_epg, R.drawable.orbit_stories_background, R.drawable.orbit_stories_bug, ChannelCategory.Entertainment),
SILVER_SCREEN_NUMBER to ChannelBranding("orbit-silver-screen", "Silver Screen", R.drawable.orbit_silver_screen_epg, R.drawable.orbit_silver_screen_background, R.drawable.orbit_silver_screen_bug, ChannelCategory.Movies),
FRONTLINE_NUMBER to ChannelBranding("orbit-frontline", "Frontline", R.drawable.orbit_frontline_epg, R.drawable.orbit_frontline_background, R.drawable.orbit_frontline_bug, ChannelCategory.Movies),
OUTLAW_NUMBER to ChannelBranding("orbit-outlaw", "OUTLAW", R.drawable.orbit_outlaw_epg, R.drawable.orbit_outlaw_background, R.drawable.orbit_outlaw_bug, ChannelCategory.Movies),
AMERICANA_NUMBER to ChannelBranding("orbit-americana", "Americana", R.drawable.orbit_americana_epg, R.drawable.orbit_americana_background, R.drawable.orbit_americana_bug, ChannelCategory.Entertainment),
110 to ChannelBranding("orbit-unscripted", "Orbit Unscripted", R.drawable.orbit_unscripted_epg, R.drawable.orbit_unscripted_background, R.drawable.orbit_unscripted_bug, ChannelCategory.Entertainment),
@@ -52,6 +52,8 @@ internal val ChannelPresets = listOf(
ChannelPreset(110, "Orbit Unscripted", UnscriptedShows, smartOnly = true),
// Americana (Paul, 23 November 2026): classic American television. See Americana.kt.
ChannelPreset(AMERICANA_NUMBER, "Americana", AmericanaShows, smartOnly = true),
// Orbit Stories (Paul, 23 November 2026): character-driven drama. See Stories.kt.
ChannelPreset(STORIES_NUMBER, "Orbit Stories", StoriesShows, smartOnly = true),
ChannelPreset(CHRISTMAS_NUMBER, "Orbit Christmas", ChristmasFilms, smartOnly = true, films = true),
ChannelPreset(206, "Orbit Home", HomeShows, smartOnly = true),
ChannelPreset(108, "Orbit Play", PlayShows, smartOnly = true),
@@ -76,6 +78,8 @@ internal val ChannelPresets = listOf(
"Ferris Bueller's Day Off", "The Breakfast Club", "Weird Science", "Teen Wolf", "Bill & Ted's Excellent Adventure", "Bill & Ted's Bogus Journey", "Wayne's World (1992)", "Big (1988)", "Home Alone", "Home Alone 2: Lost in New York", "Beetlejuice", "Hook (1991)", "Jumanji", "Mrs. Doubtfire", "Mac and Me", "Police Academy", "Top Gun", "Crocodile Dundee", "Who Framed Roger Rabbit", "Howard the Duck", "Masters of the Universe (1987)", "Innerspace", "Big Trouble in Little China", "Three Amigos", "Spaceballs", "Short Circuit 2", "Adventures in Babysitting (1987)", "Uncle Buck", "Planes, Trains and Automobiles", "National Lampoon's Vacation", "National Lampoon's European Vacation", "National Lampoon's Christmas Vacation", "Airplane! (1980)", "The Naked Gun: From the Files of Police Squad!", "The Naked Gun 2½: The Smell of Fear", "Hot Shots! (1991)", "Police Academy 2: Their First Assignment", "Trading Places", "Coming to America", "Beverly Hills Cop", "Beverly Hills Cop II", "48 Hrs.", "Twins", "Kindergarten Cop", "Honey, I Blew Up the Kid", "Dragnet (1987)", "Caddyshack", "Stripes", "Tootsie", "The Blues Brothers", "Sixteen Candles", "Pretty in Pink", "St. Elmo's Fire", "Say Anything...", "Heathers", "Better Off Dead (1985)", "Can't Buy Me Love", "Back to School", "Real Genius", "D.A.R.Y.L.", "The Last Starfighter", "Cocoon (1985)", "The Dark Crystal", "Time Bandits", "Legend (1985)", "Krull", "Conan the Barbarian (1982)", "Red Sonja (1985)", "Highlander", "Mannequin (1987)", "Harry and the Hendersons", "The Witches (1990)", "Hocus Pocus (1993)", "Jumanji", "The Mighty Ducks", "Cool Runnings"), smartOnly = true, films = true),
// OUTLAW (Paul, 23 November 2026): Western cinema, all eras. See Outlaw.kt.
ChannelPreset(OUTLAW_NUMBER, "OUTLAW", OutlawFilms, smartOnly = true, films = true),
// Silver Screen (Paul, 23 November 2026): golden-age cinema. See SilverScreenFrontline.kt.
ChannelPreset(SILVER_SCREEN_NUMBER, "Silver Screen", SilverScreenFilms, smartOnly = true, films = true),
ChannelPreset(303, "Orbit Sci-Fi", listOf("2001: A Space Odyssey", "Star Wars", "The Empire Strikes Back", "Return of the Jedi", "Alien (1979)", "Aliens (1986)", "Blade Runner", "The Terminator", "Terminator 2: Judgment Day", "RoboCop (1987)", "Total Recall (1990)", "Predator (1987)", "Stargate", "Starship Troopers", "The Fifth Element", "Contact (1997)", "Gattaca", "Dark City (1998)", "The Matrix", "Pitch Black (2000)", "Event Horizon", "Sunshine (2007)", "Moon (2009)", "District 9", "Inception", "Interstellar", "Gravity (2013)", "The Martian", "Arrival (2016)", "Ex Machina", "Dune (2021)", "Edge of Tomorrow", "Minority Report", "Looper", "Children of Men", "Star Trek II: The Wrath of Khan", "Star Trek: First Contact", "Star Trek", "Tron", "Close Encounters of the Third Kind", "The Abyss (1989)", "Independence Day (1996)", "Men in Black (1997)", "Serenity (2005)", "Planet of the Apes (1968)", "Soylent Green", "Logan's Run", "Primer", "Blade Runner 2049", "Dune: Part Two", "Alien 3", "Alien³ (1992)", "Alien Resurrection", "Prometheus (2012)", "Terminator 3: Rise of the Machines", "Terminator Salvation", "The Matrix Reloaded", "The Matrix Revolutions", "Twelve Monkeys", "Brazil (1985)", "A Clockwork Orange", "V for Vendetta", "Her", "Rogue One: A Star Wars Story", "Solo: A Star Wars Story", "Star Wars: Episode I - The Phantom Menace", "Star Wars: Episode II - Attack of the Clones", "Star Wars: Episode III - Revenge of the Sith", "Star Wars: The Force Awakens", "Star Wars: The Last Jedi", "Star Wars: The Rise of Skywalker", "Star Trek: The Motion Picture", "Star Trek III: The Search for Spock", "Star Trek IV: The Voyage Home", "Star Trek Into Darkness", "Star Trek Beyond", "Elysium", "Oblivion (2013)", "Source Code", "In Time", "I, Robot", "A.I. Artificial Intelligence", "War of the Worlds (2005)", "Predator 2", "RoboCop 2", "Deep Impact", "Annihilation", "Upgrade", "Tenet", "Ad Astra", "Passengers (2016)", "Lucy (2014)", "Limitless (2011)", "Galaxy Quest", "Flash Gordon (1980)", "Silent Running", "The Day the Earth Stood Still (1951)", "Forbidden Planet", "Westworld", "The Andromeda Strain", "Serenity (2005)"), smartOnly = true, films = true),
// Paul, 23 November 2026: Evil Dead II, Army of Darkness, Braindead, Critters and Ghostwatch are After Dark's; Dawn of the Dead and The Texas Chain Saw Massacre stay on both.
ChannelPreset(304, "Orbit Horror", listOf("A Nightmare on Elm Street (1984)",
@@ -209,6 +209,9 @@ private val AfterDarkDaytimeAdditions get() = listOf("Elvira: Mistress of the Da
internal val SmartChannels: List<ChannelProgramming> get() = BuiltInChannels + CustomChannels.programmings
private val BuiltInChannels = listOf(
// Frontline (Paul, 23 November 2026): war cinema across every era, with nightly runs of military series. See SilverScreenFrontline.kt.
ChannelProgramming(FRONTLINE_NUMBER, "Frontline", FrontlineFilms, seriesCount = FrontlineFilms.size, filmSeries = FrontlineSeries,
filmRestMs = 7 * 24 * 60 * 60_000L, exactTitles = true, dayParts = FrontlineDayParts),
ChannelProgramming(AFTER_DARK_NUMBER, "After Dark", AfterDarkFilms, seriesCount = AfterDarkFilms.size, filmSeries = listOf(LAST_DRIVE_IN) + AfterDarkAnthologies, filmRestMs = 7 * 24 * 60 * 60_000L, adaptiveFilmRest = true,
withdrawnOnOriginal = AfterDarkWithdrawn,
dayParts = AfterDarkEvents + AfterDarkStrand + listOf(DayPart(21, 5), DayPart(5, 21, listOf("The 'Burbs", "'Til Death Do Us Part (2017)", "Tremors (1990)", "The Lost Boys (1987)", "Fright Night (1985)", "Poltergeist (1982)", "Escape from New York", "They Live", "Repo Man", "Donnie Darko", "From Dusk Till Dawn", "Creepshow", "Near Dark", "The Fog (1980)", "Blue Velvet",
@@ -246,7 +249,7 @@ private val BuiltInChannels = listOf(
* other series channel since 5 November 2026 (Paul: part ones first, everywhere): weighted blocks book a story whole, and a
* mixed show in equal turns keeps it whole and in order in its deck.
*/
private val StoryGroupingChannels get() = setOf(101, 102, 103, 104, 105, 107, 108, 109, 110, AMERICANA_NUMBER, 202, 203, 204, 205, 206, 401, 602, 603, 604, 605, 611)
private val StoryGroupingChannels get() = setOf(101, 102, 103, 104, 105, 107, 108, 109, 110, AMERICANA_NUMBER, STORIES_NUMBER, 202, 203, 204, 205, 206, 401, 602, 603, 604, 605, 611)
/**
* Where a short series must keep at least half its tier's weight, so the hybrid trims its weekly repeats without cutting its
@@ -259,7 +262,7 @@ private val AdaptiveFilmRestChannels get() = setOf(301)
/** Editorially weighted rotation, per channel, once its tiers are approved: Orbit Three (0.97.0), Odyssey, Wild, Orbit X and ToonZ (0.98.0), then Orbit 1, Orbit 2, Gold, Evidence and Heroes (0.99.4; Vortex and Paradox are set above). */
private val SmartChannelTiers: Map<Int, Map<String, Double>> get() = mapOf(103 to ThreeTiers, 202 to OdysseyTiers, 203 to WildTiers, 603 to OrbitXTiers, 605 to ToonZTiers,
101 to Orbit1Tiers, 102 to Orbit2Tiers, 104 to GoldTiers, 108 to PlayTiers, 107 to EvidenceTiers, 602 to HeroesTiers, 604 to RewindTiers, 204 to DarkFilesTiers)
101 to Orbit1Tiers, 102 to Orbit2Tiers, 104 to GoldTiers, 108 to PlayTiers, STORIES_NUMBER to StoriesTiers, 107 to EvidenceTiers, 602 to HeroesTiers, 604 to RewindTiers, 204 to DarkFilesTiers)
/**
* Weighted channels whose short catalogues are scaled down ([ChannelProgramming.catalogueScaleHours]): Rewind and Dark Files,
@@ -277,7 +280,7 @@ private val SmartChannelMixed: Map<Int, Set<String>> get() = mapOf(101 to Orbit1
private val SmartChannelParts: Map<Int, List<DayPart>> get() = mapOf(101 to Orbit1DayParts, 102 to Orbit2DayParts, 103 to ThreeDayParts, 104 to GoldDayParts, 105 to RiotDayParts, 304 to HorrorDayParts,
602 to HeroesDayParts, 603 to OrbitXDayParts, 604 to RewindDayParts, 605 to ToonZDayParts, 204 to DarkFilesDayParts, 203 to WildDayParts, 202 to OdysseyDayParts, 107 to EvidenceDayParts,
401 to RingXDayParts, 611 to JuniorDayParts, 205 to KitchenDayParts, 206 to HomeDayParts, 108 to PlayDayParts,
109 to SignatureDayParts, 110 to UnscriptedDayParts, CHRISTMAS_NUMBER to ChristmasDayParts, AMERICANA_NUMBER to AmericanaDayParts, OUTLAW_NUMBER to OutlawDayParts)
109 to SignatureDayParts, 110 to UnscriptedDayParts, CHRISTMAS_NUMBER to ChristmasDayParts, AMERICANA_NUMBER to AmericanaDayParts, OUTLAW_NUMBER to OutlawDayParts, SILVER_SCREEN_NUMBER to SilverScreenDayParts, STORIES_NUMBER to StoriesDayParts)
/** Optional bigger pools, only used once reviewed. No rule for Orbit Gold or Orbit Three: nothing in the library's details can tell a British sitcom apart. */
private val SmartChannelRules: Map<Int, List<SuggestionRule>> get() = mapOf(
@@ -92,6 +92,15 @@ internal val BaseBriefs: List<Brief> = listOf(
// technology, dystopian futures and big adventures. Paradox is the cult and speculative series channel. Form and identity both.
Brief(303, "Orbit Sci-Fi", setOf("Movie"), setOf("Science Fiction"), setOf("Science Fiction"), w("alien", "space", "future", "robot", "planet", "time", "dystopia", "android", "galaxy",
"astronaut", "starship", "technology", "artificial intelligence", "invasion", "exploration"), w("documentary"), 1950 to 2026, current = true),
// Paul, 23 November 2026: Orbit Stories, character-driven drama followed week to week (hospitals, teens, families, small towns).
Brief(STORIES_NUMBER, "Orbit Stories", setOf("Series"), setOf("Drama"), setOf("Drama"), w("family", "hospital", "doctor", "nurse", "surgeon", "teen", "high school",
"small town", "friends", "relationship", "romance", "sisters", "brothers", "life"), w("documentary", "reality", "murder", "detective", "animated"), 1980 to 2026, current = true),
// Silver Screen: golden-age cinema to 1965, Hollywood and British classics, Hitchcock and noir.
Brief(SILVER_SCREEN_NUMBER, "Silver Screen", setOf("Movie"), setOf("Drama", "Comedy", "Romance", "Thriller", "Mystery", "Crime", "Film-Noir", "Musical", "Adventure"),
themes = w("classic", "hollywood", "noir", "detective", "screwball", "ealing", "romance", "murder", "mystery"), against = w("documentary", "animated"), era = 1925 to 1965),
// Frontline: war cinema across every era; tone, subject and age suitability decide its block.
Brief(FRONTLINE_NUMBER, "Frontline", setOf("Movie"), setOf("War", "History", "Drama", "Action"), setOf("War"), w("war", "soldier", "army", "battle", "platoon", "marine",
"navy", "pilot", "squadron", "resistance", "prisoner of war", "invasion", "veteran", "combat"), w("animated", "comedy"), 1925 to 2026, current = true),
// Paul, 23 November 2026: OUTLAW, Western cinema across every era; tone, not year, decides its block (OutlawRules).
Brief(OUTLAW_NUMBER, "OUTLAW", setOf("Movie"), setOf("Western"), setOf("Western"), w("cowboy", "outlaw", "sheriff", "marshal", "frontier", "ranch", "gunslinger",
"bounty", "bandit", "posse", "stagecoach", "cattle", "homestead", "desert", "west"), w("documentary", "animated"), 1930 to 2026, current = true),
@@ -154,7 +163,7 @@ private val EventFilmWords = Regex("superhero|epic|franchise|saga|blockbuster",
private val International = setOf(305, 601, 401)
private val AnimatedChannels = setOf(105, 601, 602, 603, 604, 605, 611, 612, 613, 614)
private val FactualChannels = setOf(201, 202, 203, 204, 401)
private val FictionChannels = setOf(101, 103, 104, 105, 106, 107, AMERICANA_NUMBER, 301, 302, 303, 304, 305, 306, 307, 308, 309, 601, 602, 603, 604, 605, 612, 613, OUTLAW_NUMBER)
private val FictionChannels = setOf(101, 103, 104, 105, 106, 107, AMERICANA_NUMBER, STORIES_NUMBER, SILVER_SCREEN_NUMBER, 301, 302, 303, 304, 305, 306, 307, 308, 309, 601, 602, 603, 604, 605, 612, 613, OUTLAW_NUMBER, FRONTLINE_NUMBER)
private val Stop = "a an the and or of to in on for with his her their its is are was be by as at from this that he she they it into who when after one two new life series film show story world".split(" ").toSet()
private val Token = Regex("[a-z][a-z'-]{2,}")
@@ -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])
return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed])
val match = withYear.matchEntire(trimmed) ?: return FilmIdentity(trimmed, imdb = FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed])
return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed])
}
}
}
@@ -34,7 +34,7 @@ internal const val ONE_STREAM_HANDOVER_MS = 800L
internal const val IDENT_HOLD_MS = 6_000L
private const val IDENT_SHORTEST_PROGRAMME_MS = 3 * 60_000L
private val IdentVideos = mapOf(AMERICANA_NUMBER to R.raw.ident_111, OUTLAW_NUMBER to R.raw.ident_311, 108 to R.raw.ident_108, 109 to R.raw.ident_109, 110 to R.raw.ident_110, CHRISTMAS_NUMBER to R.raw.ident_310, 205 to R.raw.ident_205, 206 to R.raw.ident_206, 101 to R.raw.ident_101, 102 to R.raw.ident_102, 103 to R.raw.ident_103, 104 to R.raw.ident_104, 105 to R.raw.ident_105, 106 to R.raw.ident_106, 107 to R.raw.ident_107,
private val IdentVideos = mapOf(AMERICANA_NUMBER to R.raw.ident_111, OUTLAW_NUMBER to R.raw.ident_311, STORIES_NUMBER to R.raw.ident_112, SILVER_SCREEN_NUMBER to R.raw.ident_312, FRONTLINE_NUMBER to R.raw.ident_313, 108 to R.raw.ident_108, 109 to R.raw.ident_109, 110 to R.raw.ident_110, CHRISTMAS_NUMBER to R.raw.ident_310, 205 to R.raw.ident_205, 206 to R.raw.ident_206, 101 to R.raw.ident_101, 102 to R.raw.ident_102, 103 to R.raw.ident_103, 104 to R.raw.ident_104, 105 to R.raw.ident_105, 106 to R.raw.ident_106, 107 to R.raw.ident_107,
201 to R.raw.ident_201, 202 to R.raw.ident_202, 203 to R.raw.ident_203, 204 to R.raw.ident_204, 301 to R.raw.ident_301, 302 to R.raw.ident_302, 303 to R.raw.ident_303, 304 to R.raw.ident_304, 305 to R.raw.ident_305,
306 to R.raw.ident_306, 307 to R.raw.ident_307, 308 to R.raw.ident_308, 309 to R.raw.ident_309, 401 to R.raw.ident_401, 601 to R.raw.ident_601, 602 to R.raw.ident_602, 603 to R.raw.ident_603, 604 to R.raw.ident_604, 605 to R.raw.ident_605,
611 to R.raw.ident_611, 612 to R.raw.ident_612, 613 to R.raw.ident_613)
@@ -0,0 +1,173 @@
package tv.orbit.classic
import java.time.DayOfWeek
/**
* Silver Screen and Frontline (Paul, 23 November 2026): two film channels from the new-channel research, each film named with its
* year and settled by the server's IMDb ID ([NewChannelImdb]), all checked playable with English sound. See
* docs/channels/silver-screen.md and docs/channels/frontline.md.
*/
internal const val SILVER_SCREEN_NUMBER = 312
internal const val FRONTLINE_NUMBER = 313
/** Silver Screen: golden-age cinema, the silents to 1965. */
private val SilverMorning = listOf(
"Bringing Up Baby (1938)", "His Girl Friday (1940)", "It Happened One Night (1934)", "The Philadelphia Story (1940)", "Roman Holiday (1953)",
"Genevieve (1953)", "Sabrina (1954)", "Top Hat (1935)", "Swing Time (1936)", "The Awful Truth (1937)", "My Man Godfrey (1936)",
"Arsenic and Old Lace (1944)", "The Lady Eve (1941)", "Holiday (1938)", "Mr. Deeds Goes to Town (1936)", "You Can't Take It with You (1938)",
"Singin' in the Rain (1952)", "Meet Me in St. Louis (1944)", "The Quiet Man (1952)", "Father of the Bride (1950)", "Harvey (1950)",
"Pillow Talk (1959)", "Gentlemen Prefer Blondes (1953)", "The Wizard of Oz (1939)", "Modern Times (1936)", "The General (1926)",
"The Gold Rush (1925)", "A Night at the Opera (1935)", "Duck Soup (1933)")
private val SilverMatinee = listOf(
"Kind Hearts and Coronets (1949)", "The Ladykillers (1955)", "The Lavender Hill Mob (1951)", "Passport to Pimlico (1949)",
"The Man in the White Suit (1951)", "Hue and Cry (1947)", "School for Scoundrels (1960)", "I'm All Right Jack (1959)", "Hobson's Choice (1954)",
"Great Expectations (1946)", "Oliver Twist (1948)", "In Which We Serve (1942)", "I Know Where I'm Going! (1945)", "Whistle Down the Wind (1961)",
"The African Queen (1951)", "Captain Blood (1935)", "The Prisoner of Zenda (1937)", "Treasure Island (1950)")
private val SilverGreat = listOf(
"Some Like It Hot (1959)", "The Apartment (1960)", "The Red Shoes (1948)", "Black Narcissus (1947)",
"The Life and Death of Colonel Blimp (1943)", "Citizen Kane (1941)", "Sunset Boulevard (1950)", "All About Eve (1950)", "12 Angry Men (1957)",
"On the Waterfront (1954)", "The Grapes of Wrath (1940)", "How Green Was My Valley (1941)", "Mr. Smith Goes to Washington (1939)",
"It's a Wonderful Life (1946)", "Casablanca (1942)", "The Best Years of Our Lives (1946)", "A Streetcar Named Desire (1951)",
"East of Eden (1955)", "Rebel Without a Cause (1955)", "To Kill a Mockingbird (1962)", "Paths of Glory (1957)",
"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964)", "Brief Encounter (1945)")
/** Hitchcock, for the Friday Hitchcock Nights and the nightly Hitchcock and noir block. */
internal val SilverHitchcock = listOf(
"Rebecca (1940)", "Rear Window (1954)", "Vertigo (1958)", "North by Northwest (1959)", "Notorious (1946)", "Strangers on a Train (1951)",
"Dial M for Murder (1954)", "To Catch a Thief (1955)", "The Lady Vanishes (1938)", "The 39 Steps (1935)", "Spellbound (1945)",
"Shadow of a Doubt (1943)", "Rope (1948)", "The Man Who Knew Too Much (1956)", "Lifeboat (1944)")
private val SilverNoir = listOf(
"Charade (1963)", "The Thin Man (1934)", "Double Indemnity (1944)", "The Maltese Falcon (1941)", "The Big Sleep (1946)", "The Third Man (1949)",
"Touch of Evil (1958)", "Out of the Past (1947)", "Gilda (1946)", "The Postman Always Rings Twice (1946)", "Mildred Pierce (1945)",
"Key Largo (1948)", "The Night of the Hunter (1955)", "Sweet Smell of Success (1957)", "White Heat (1949)", "The Asphalt Jungle (1950)",
"Odd Man Out (1947)")
private val SilverEpics = listOf(
"Gone with the Wind (1939)", "Ben-Hur (1959)", "Lawrence of Arabia (1962)", "The Bridge on the River Kwai (1957)", "Spartacus (1960)",
"The Ten Commandments (1956)", "Doctor Zhivago (1965)")
internal val SilverScreenFilms get() = (SilverMorning + SilverMatinee + SilverGreat + SilverHitchcock + SilverNoir + SilverEpics).distinct()
internal val SilverScreenDayParts get() = listOf(
// Hitchcock Nights (Paul, 23 November 2026): every Friday evening, a Hitchcock and a complementary noir or classic thriller.
DayPart(20, 0, SilverHitchcock + SilverNoir, group = "Hitchcock Nights", days = setOf(DayOfWeek.FRIDAY)),
// The Sunday epic: one a week, on time at 14:00.
DayPart(14, 18, SilverEpics, group = "Sunday Epic", days = setOf(DayOfWeek.SUNDAY), onTime = true, once = true),
DayPart(6, 12, SilverMorning, group = "Morning Pictures"), DayPart(12, 18, SilverMorning + SilverMatinee, group = "Matinee"),
DayPart(18, 21, SilverGreat, group = "The Great Films"), DayPart(21, 1, SilverHitchcock + SilverNoir, group = "Hitchcock and Noir"),
DayPart(1, 6, SilverScreenFilms - SilverEpics.toSet(), group = "Late Show"))
/**
* Frontline: war cinema across every era, including modern conflict, anti-war films and the human and psychological cost of
* war. Tone, subject and age suitability decide the block, never the year: classic adventures and missions earlier, the
* darker, more intense and adult films later. The Cost of War (21:00 to 01:00) is its signature evening block.
*/
private val FrontlineBritain = listOf(
"The Dam Busters (1955)", "The Cruel Sea (1953)", "Sink the Bismarck! (1960)", "The Battle of the River Plate (1956)",
"A Night to Remember (1958)", "In Which We Serve (1942)", "Zulu (1964)", "Darkest Hour (2017)", "Their Finest (2016)",
"Operation Mincemeat (2021)", "The Imitation Game (2014)", "Memphis Belle (1990)", "Escape to Victory (1981)", "Battleground (1949)")
private val FrontlineMissions = listOf(
"The Great Escape (1963)", "The Guns of Navarone (1961)", "The Dirty Dozen (1967)", "Kelly's Heroes (1970)", "A Bridge Too Far (1977)",
"The Longest Day (1962)", "The Eagle Has Landed (1976)", "Von Ryan's Express (1965)", "Operation Crossbow (1965)", "Tora! Tora! Tora! (1970)",
"Midway (1976)", "Patton (1970)", "The Bridge on the River Kwai (1957)", "Greyhound (2020)", "U-571 (2000)", "Pearl Harbor (2001)",
"The Great Raid (2005)", "Red Tails (2012)", "The Monuments Men (2014)", "Valkyrie (2008)", "Defiance (2008)", "War Horse (2011)",
"Empire of the Sun (1987)", "Behind Enemy Lines (2001)", "Tears of the Sun (2003)", "Windtalkers (2002)", "Unbroken (2014)",
"Good Morning, Vietnam (1987)", "Courage Under Fire (1996)", "Three Kings (1999)", "Midway (2019)", "Devotion (2022)", "Rescue Dawn (2006)")
internal val FrontlineCostOfWar = listOf(
"Apocalypse Now (1979)", "Platoon (1986)", "Full Metal Jacket (1987)", "The Deer Hunter (1978)", "Paths of Glory (1957)", "Come and See (1985)",
"The Thin Red Line (1998)", "Black Hawk Down (2001)", "1917 (2019)", "Hacksaw Ridge (2016)", "Letters from Iwo Jima (2006)",
"Flags of Our Fathers (2006)", "Enemy at the Gates (2001)", "Glory (1989)", "Gallipoli (1981)", "All Quiet on the Western Front (1930)",
"The Hurt Locker (2008)", "Jarhead (2005)", "We Were Soldiers (2002)", "Lone Survivor (2013)", "Cross of Iron (1977)", "Hamburger Hill (1987)",
"Born on the Fourth of July (1989)", "Casualties of War (1989)", "The Pianist (2002)", "Schindler's List (1993)", "Rules of Engagement (2000)",
"Fury (2014)", "American Sniper (2014)", "Warfare (2025)", "Zero Dark Thirty (2012)", "Restrepo (2010)", "Hotel Rwanda (2004)",
"Beasts of No Nation (2015)", "Land of Mine (2015)", "Jojo Rabbit (2019)", "The Boy in the Striped Pyjamas (2008)", "Tigerland (2000)",
"The Messenger (2009)", "Brothers (2009)", "The Zone of Interest (2023)", "They Shall Not Grow Old (2018)")
/** Modern combat, for After Hours with the darker films. */
private val FrontlineModernCombat = listOf(
"13 Hours: The Secret Soldiers of Benghazi (2016)", "The Outpost (2020)", "12 Strong (2018)", "Act of Valor (2012)", "The Covenant (2023)",
"Green Zone (2010)", "Hyena Road (2015)", "Kajaki (2014)", "Civil War (2024)")
/** Military series: TV-14 and under in the afternoon, the adult ones (TV-MA) after 01:00. Each plays as a nightly run. */
internal val FrontlineSeries = listOf("SEAL Team", "The Unit", "Tour of Duty", "Soldier Soldier", "Foyle's War", "Our Girl", "The Rat Patrol", "World on Fire",
"Strike Back", "Ultimate Force", "Generation Kill", "Masters of the Air", "SAS Rogue Heroes")
internal val FrontlineFilms get() = (FrontlineBritain + FrontlineMissions + FrontlineCostOfWar + FrontlineModernCombat).distinct()
private fun duty(title: String, day: DayOfWeek, from: Int, run: Int) = DayPart(from, from + 1, listOf(title), days = setOf(day), onTime = true, run = run)
internal val FrontlineDayParts get() = listOf(
// On Duty, weekday afternoons at 12:00: a run of one series a day, suitable for the afternoon.
duty("SEAL Team", DayOfWeek.MONDAY, 12, 4), duty("The Unit", DayOfWeek.TUESDAY, 12, 4), duty("Tour of Duty", DayOfWeek.WEDNESDAY, 12, 4),
duty("Our Girl", DayOfWeek.THURSDAY, 12, 3), duty("Foyle's War", DayOfWeek.FRIDAY, 12, 2), duty("Soldier Soldier", DayOfWeek.SATURDAY, 12, 3),
duty("World on Fire", DayOfWeek.SUNDAY, 12, 2),
// After Hours, from 01:00: the adult military dramas.
duty("Strike Back", DayOfWeek.MONDAY, 1, 2), duty("Ultimate Force", DayOfWeek.TUESDAY, 1, 2), duty("Strike Back", DayOfWeek.WEDNESDAY, 1, 2),
duty("Generation Kill", DayOfWeek.THURSDAY, 1, 2), duty("SAS Rogue Heroes", DayOfWeek.FRIDAY, 1, 2), duty("Masters of the Air", DayOfWeek.SATURDAY, 1, 2),
duty("The Rat Patrol", DayOfWeek.SATURDAY, 15, 3),
DayPart(6, 12, FrontlineBritain, group = "Britain at War"), DayPart(12, 17, FrontlineBritain + FrontlineMissions, group = "On Duty"),
DayPart(17, 21, FrontlineMissions, group = "Missions and Escapes"), DayPart(21, 1, FrontlineCostOfWar, group = FRONTLINE_COST),
DayPart(1, 6, FrontlineCostOfWar + FrontlineModernCombat, group = "After Hours"))
internal const val FRONTLINE_COST = "The Cost of War"
/** The server's IMDb IDs for Silver Screen's and Frontline's films. */
internal val NewChannelImdb: Map<String, String> by lazy { mapOf(
"Bringing Up Baby (1938)" to "tt0029947", "His Girl Friday (1940)" to "tt0032599", "It Happened One Night (1934)" to "tt0025316",
"The Philadelphia Story (1940)" to "tt0032904", "Roman Holiday (1953)" to "tt0046250", "Genevieve (1953)" to "tt0045808",
"Some Like It Hot (1959)" to "tt0053291", "The Apartment (1960)" to "tt0053604", "Sabrina (1954)" to "tt0047437",
"Charade (1963)" to "tt0056923", "Top Hat (1935)" to "tt0027125", "Swing Time (1936)" to "tt0028333", "The Awful Truth (1937)" to "tt0028597",
"My Man Godfrey (1936)" to "tt0028010", "The Thin Man (1934)" to "tt0025878", "Arsenic and Old Lace (1944)" to "tt0036613",
"The Lady Eve (1941)" to "tt0033804", "Holiday (1938)" to "tt0030241", "Mr. Deeds Goes to Town (1936)" to "tt0027996",
"You Can't Take It with You (1938)" to "tt0030993", "Singin' in the Rain (1952)" to "tt0045152", "Meet Me in St. Louis (1944)" to "tt0037059",
"The Quiet Man (1952)" to "tt0045061", "Father of the Bride (1950)" to "tt0042451", "Harvey (1950)" to "tt0042546",
"Pillow Talk (1959)" to "tt0053172", "Gentlemen Prefer Blondes (1953)" to "tt0045810", "Kind Hearts and Coronets (1949)" to "tt0041546",
"The Ladykillers (1955)" to "tt0048281", "The Lavender Hill Mob (1951)" to "tt0044829", "Passport to Pimlico (1949)" to "tt0041737",
"The Man in the White Suit (1951)" to "tt0044876", "Hue and Cry (1947)" to "tt0039478", "School for Scoundrels (1960)" to "tt0054279",
"I'm All Right Jack (1959)" to "tt0052911", "Hobson's Choice (1954)" to "tt0047094", "Great Expectations (1946)" to "tt0038574",
"Oliver Twist (1948)" to "tt0040662", "In Which We Serve (1942)" to "tt0034891", "The Red Shoes (1948)" to "tt0040725",
"Black Narcissus (1947)" to "tt0039192", "I Know Where I'm Going! (1945)" to "tt0037800",
"The Life and Death of Colonel Blimp (1943)" to "tt0036112", "Whistle Down the Wind (1961)" to "tt0055618",
"The African Queen (1951)" to "tt0043265", "Captain Blood (1935)" to "tt0026174", "The Prisoner of Zenda (1937)" to "tt0029442",
"Treasure Island (1950)" to "tt0043067", "The Wizard of Oz (1939)" to "tt0032138", "Citizen Kane (1941)" to "tt0033467",
"Sunset Boulevard (1950)" to "tt0043014", "All About Eve (1950)" to "tt0042192", "12 Angry Men (1957)" to "tt0050083",
"On the Waterfront (1954)" to "tt0047296", "The Grapes of Wrath (1940)" to "tt0032551", "How Green Was My Valley (1941)" to "tt0033729",
"Mr. Smith Goes to Washington (1939)" to "tt0031679", "It's a Wonderful Life (1946)" to "tt0038650", "Casablanca (1942)" to "tt0034583",
"Gone with the Wind (1939)" to "tt0031381", "Rebecca (1940)" to "tt0032976", "The Best Years of Our Lives (1946)" to "tt0036868",
"A Streetcar Named Desire (1951)" to "tt0044081", "East of Eden (1955)" to "tt0048028", "Rebel Without a Cause (1955)" to "tt0048545",
"To Kill a Mockingbird (1962)" to "tt0056592", "Paths of Glory (1957)" to "tt0050825",
"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964)" to "tt0057012", "Modern Times (1936)" to "tt0027977",
"The General (1926)" to "tt0017925", "The Gold Rush (1925)" to "tt0015864", "Brief Encounter (1945)" to "tt0037558",
"Rear Window (1954)" to "tt0047396", "Vertigo (1958)" to "tt0052357", "North by Northwest (1959)" to "tt0053125",
"Notorious (1946)" to "tt0038787", "Strangers on a Train (1951)" to "tt0044079", "Dial M for Murder (1954)" to "tt0046912",
"To Catch a Thief (1955)" to "tt0048728", "The Lady Vanishes (1938)" to "tt0030341", "The 39 Steps (1935)" to "tt0026029",
"Spellbound (1945)" to "tt0038109", "Shadow of a Doubt (1943)" to "tt0036342", "Rope (1948)" to "tt0040746",
"The Man Who Knew Too Much (1956)" to "tt0049470", "Lifeboat (1944)" to "tt0037017", "Double Indemnity (1944)" to "tt0036775",
"The Maltese Falcon (1941)" to "tt0033870", "The Big Sleep (1946)" to "tt0038355", "The Third Man (1949)" to "tt0041959",
"Touch of Evil (1958)" to "tt0052311", "Out of the Past (1947)" to "tt0039689", "Gilda (1946)" to "tt0038559",
"The Postman Always Rings Twice (1946)" to "tt0038854", "Mildred Pierce (1945)" to "tt0037913", "Key Largo (1948)" to "tt0040506",
"The Night of the Hunter (1955)" to "tt0048424", "Sweet Smell of Success (1957)" to "tt0051036", "White Heat (1949)" to "tt0042041",
"The Asphalt Jungle (1950)" to "tt0042208", "Odd Man Out (1947)" to "tt0039677", "Ben-Hur (1959)" to "tt0052618",
"Lawrence of Arabia (1962)" to "tt0056172", "The Bridge on the River Kwai (1957)" to "tt0050212", "Spartacus (1960)" to "tt0054331",
"The Ten Commandments (1956)" to "tt0049833", "Doctor Zhivago (1965)" to "tt0059113", "A Night at the Opera (1935)" to "tt0026778",
"Duck Soup (1933)" to "tt0023969", "The Dam Busters (1955)" to "tt0046889", "The Cruel Sea (1953)" to "tt0045659",
"Sink the Bismarck! (1960)" to "tt0054310", "The Battle of the River Plate (1956)" to "tt0048990", "A Night to Remember (1958)" to "tt0051994",
"Zulu (1964)" to "tt0058777", "Darkest Hour (2017)" to "tt4555426", "Their Finest (2016)" to "tt1661275",
"Operation Mincemeat (2021)" to "tt1879016", "The Imitation Game (2014)" to "tt2084970", "Memphis Belle (1990)" to "tt0100133",
"Escape to Victory (1981)" to "tt0083284", "Battleground (1949)" to "tt0041163", "The Great Escape (1963)" to "tt0057115",
"The Guns of Navarone (1961)" to "tt0054953", "The Dirty Dozen (1967)" to "tt0061578", "Kelly's Heroes (1970)" to "tt0065938",
"A Bridge Too Far (1977)" to "tt0075784", "The Longest Day (1962)" to "tt0056197", "The Eagle Has Landed (1976)" to "tt0074452",
"Von Ryan's Express (1965)" to "tt0059885", "Operation Crossbow (1965)" to "tt0059549", "Tora! Tora! Tora! (1970)" to "tt0066473",
"Midway (1976)" to "tt0074899", "Patton (1970)" to "tt0066206", "Greyhound (2020)" to "tt6048922", "U-571 (2000)" to "tt0141926",
"Pearl Harbor (2001)" to "tt0213149", "The Great Raid (2005)" to "tt0326905", "Red Tails (2012)" to "tt0485985",
"The Monuments Men (2014)" to "tt2177771", "Valkyrie (2008)" to "tt0985699", "Defiance (2008)" to "tt1034303", "War Horse (2011)" to "tt1568911",
"Empire of the Sun (1987)" to "tt0092965", "Behind Enemy Lines (2001)" to "tt0159273", "Tears of the Sun (2003)" to "tt0314353",
"Windtalkers (2002)" to "tt0245562", "Unbroken (2014)" to "tt1809398", "Good Morning, Vietnam (1987)" to "tt0093105",
"Courage Under Fire (1996)" to "tt0115956", "Three Kings (1999)" to "tt0120188", "Apocalypse Now (1979)" to "tt0078788",
"Platoon (1986)" to "tt0091763", "Full Metal Jacket (1987)" to "tt0093058", "The Deer Hunter (1978)" to "tt0077416",
"Come and See (1985)" to "tt0091251", "The Thin Red Line (1998)" to "tt0120863", "Black Hawk Down (2001)" to "tt0265086",
"1917 (2019)" to "tt8579674", "Hacksaw Ridge (2016)" to "tt2119532", "Letters from Iwo Jima (2006)" to "tt0498380",
"Flags of Our Fathers (2006)" to "tt0418689", "Enemy at the Gates (2001)" to "tt0215750", "Glory (1989)" to "tt0097441",
"Gallipoli (1981)" to "tt0082432", "All Quiet on the Western Front (1930)" to "tt0020629", "The Hurt Locker (2008)" to "tt0887912",
"Jarhead (2005)" to "tt0418763", "We Were Soldiers (2002)" to "tt0277434", "Lone Survivor (2013)" to "tt1091191",
"Cross of Iron (1977)" to "tt0074695", "Hamburger Hill (1987)" to "tt0093137", "Born on the Fourth of July (1989)" to "tt0096969",
"Casualties of War (1989)" to "tt0097027", "The Pianist (2002)" to "tt0253474", "Schindler's List (1993)" to "tt0108052",
"Rules of Engagement (2000)" to "tt0160797", "Fury (2014)" to "tt2713180", "Midway (2019)" to "tt6924650",
"American Sniper (2014)" to "tt2179136", "Warfare (2025)" to "tt31434639", "13 Hours: The Secret Soldiers of Benghazi (2016)" to "tt4172430",
"The Outpost (2020)" to "tt3833480", "12 Strong (2018)" to "tt1413492", "Act of Valor (2012)" to "tt1591479",
"Zero Dark Thirty (2012)" to "tt1790885", "Restrepo (2010)" to "tt1559549", "Hotel Rwanda (2004)" to "tt0395169",
"Beasts of No Nation (2015)" to "tt1365050", "The Covenant (2023)" to "tt4873118", "Devotion (2022)" to "tt7693316",
"Land of Mine (2015)" to "tt3841424", "Jojo Rabbit (2019)" to "tt2584384", "The Boy in the Striped Pyjamas (2008)" to "tt0914798",
"Tigerland (2000)" to "tt0170691", "Rescue Dawn (2006)" to "tt0462504", "The Messenger (2009)" to "tt0790712", "Brothers (2009)" to "tt0765010",
"Green Zone (2010)" to "tt0947810", "Hyena Road (2015)" to "tt4034452", "Kajaki (2014)" to "tt3622120", "Civil War (2024)" to "tt17279496",
"The Zone of Interest (2023)" to "tt7160372", "They Shall Not Grow Old (2018)" to "tt7905466") }
@@ -0,0 +1,28 @@
package tv.orbit.classic
/**
* Orbit Stories (Paul, 23 November 2026): character-driven drama you follow week to week, in the spirit of Living, E4 and Sky
* One drama: small towns, hospitals, teens and families. Every series runs in its season and episode order. Mature series
* (Skins, Shameless, Euphoria, Sex Education) stay in the late block. Names are the server's own (docs/channels/stories.md).
*/
internal const val STORIES_NUMBER = 112
private val StoriesMornings = listOf("Call the Midwife", "Peak Practice", "Northern Exposure", "Gilmore Girls", "Everwood", "7th Heaven", "When Calls the Heart",
"Virgin River", "Hart of Dixie", "Sweet Magnolias", "Monarch of the Glen", "All Creatures Great & Small (2020)")
private val StoriesWards = listOf("Casualty", "Holby City", "St. Elsewhere", "Chicago Hope", "The Royal", "Private Practice", "New Amsterdam (2018)", "The Resident")
private val StoriesAfterSchool = listOf("Dawson's Creek", "The O.C.", "One Tree Hill", "Beverly Hills, 90210", "Party of Five", "Smallville", "Veronica Mars",
"Gossip Girl", "Freaks and Geeks", "My So-Called Life")
private val StoriesPrimetime = listOf("ER", "Grey's Anatomy", "House", "This Is Us", "Parenthood (2010)", "Brothers & Sisters", "Desperate Housewives",
"Chicago Med", "Chicago Fire", "Ugly Betty")
/** Mature series, late only. Shameless is the Channel 4 original. */
private val StoriesLate = listOf("Skins", "Shameless", "Euphoria (US)", "Ally McBeal", "The Practice", "Boston Legal", "Sex Education", "Picket Fences")
internal val StoriesShows get() = (StoriesMornings + StoriesWards + StoriesAfterSchool + StoriesPrimetime + StoriesLate).distinct()
internal val StoriesDayParts get() = listOf(
DayPart(6, 12, StoriesMornings), DayPart(12, 17, StoriesWards), DayPart(17, 20, StoriesAfterSchool), DayPart(20, 23, StoriesPrimetime),
DayPart(23, 2, StoriesLate),
// Overnight repeats: the grown-up evening and late series, so nothing mature reaches the daytime.
DayPart(2, 6, StoriesPrimetime + StoriesLate))
/** Tiers: Casualty and Holby City have 550 episodes or more each, so they're supporting and the rest core. */
internal val StoriesTiers: Map<String, Double> get() =
(StoriesShows - setOf("Casualty", "Holby City")).associate { seriesKey(it) to TIER_CORE } + listOf("Casualty", "Holby City").associate { seriesKey(it) to TIER_SUPPORTING }
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -167,8 +167,8 @@ class ChannelPresetsTest {
listOf(612, 613, 306, 303, 304, 302, 307, 301).forEach { assertNotNull(SmartChannels.first { channel -> channel.number == it }.filmRestMs) }
assertEquals(ChannelCategory.Sport, ChannelBrands.forNumber(401)!!.category)
// Kitchen, Home and Play joined on 6 November 2026.
// Americana and OUTLAW joined on 23 November 2026.
assertEquals(38, SmartChannels.size)
// Americana, OUTLAW, Orbit Stories, Silver Screen and Frontline joined on 23 November 2026.
assertEquals(41, SmartChannels.size)
}
@Test fun ringXKeepsItsWeeknightsAndFallsBackToTheVault() {
@@ -199,7 +199,7 @@ class ChannelPresetsTest {
@Test fun everySmartChannelIsBrandedAndNumberedAfterTheMove() {
SmartChannels.forEach { assertNotNull("${it.name} has no brand at ${it.number}", ChannelBrands.forNumber(it.number)) }
assertEquals(OldChannelNumbers.values.toSet() - DRIVE_IN_NUMBER + 101 + TOTS_NUMBER + setOf(108, 109, 110, 205, 206, CHRISTMAS_NUMBER, AMERICANA_NUMBER, OUTLAW_NUMBER), SmartChannels.map { it.number }.toSet())
assertEquals(OldChannelNumbers.values.toSet() - DRIVE_IN_NUMBER + 101 + TOTS_NUMBER + setOf(108, 109, 110, 205, 206, CHRISTMAS_NUMBER, AMERICANA_NUMBER, OUTLAW_NUMBER, STORIES_NUMBER, SILVER_SCREEN_NUMBER, FRONTLINE_NUMBER), SmartChannels.map { it.number }.toSet())
}
@Test fun kitchenHomeAndPlayAreBrandedInTheirBlocks() {
@@ -64,6 +64,8 @@ class LastDriveInTest {
}
@Test fun onlyAfterDarkCarriesASeries() {
assertEquals(listOf(AFTER_DARK_NUMBER), SmartChannels.filter { it.filmSeries.isNotEmpty() }.map { it.number })
// And Frontline's military series runs since 23 November 2026; Joe Bob's show is After Dark's alone.
assertEquals(setOf(AFTER_DARK_NUMBER, FRONTLINE_NUMBER), SmartChannels.filter { it.filmSeries.isNotEmpty() }.map { it.number }.toSet())
assertEquals(listOf(AFTER_DARK_NUMBER), SmartChannels.filter { LAST_DRIVE_IN in it.filmSeries }.map { it.number })
}
}
@@ -0,0 +1,61 @@
package tv.orbit.classic
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
import java.time.DayOfWeek
import java.time.LocalDate
import java.time.ZoneOffset
/** Silver Screen, Orbit Stories and Frontline (Paul, 23 November 2026). */
class NewFilmChannelsTest {
private fun ch(n: Int) = SmartChannels.first { it.number == n }
private fun part(n: Int, hour: Int, day: DayOfWeek? = null) = ch(n).dayParts.first { (it.days.isEmpty() || (day != null && day in it.days)) && it.covers(hour) }
@Test fun silverScreenIsSettledAndHasHitchcockNights() {
val s = ch(SILVER_SCREEN_NUMBER)
assertEquals(109, SilverScreenFilms.size); assertTrue(s.filmRestMs != null)
SilverScreenFilms.forEach { assertTrue(it, FilmIdentity.of(it).imdb != null) }
val friday = s.dayParts.first { DayOfWeek.FRIDAY in it.days }
assertEquals("Hitchcock Nights", friday.group); assertEquals(20, friday.fromHour)
assertTrue("Rear Window (1954)" in friday.titles && "Double Indemnity (1944)" in friday.titles)
assertTrue(s.dayParts.any { DayOfWeek.SUNDAY in it.days && "Ben-Hur (1959)" in it.titles })
assertTrue("Vertigo (1958)" in part(SILVER_SCREEN_NUMBER, 22).titles) // the wider rotation on other nights
}
@Test fun storiesRunInOrderWithTiersAndMatureShowsLate() {
val s = ch(STORIES_NUMBER)
assertEquals(48, StoriesShows.size)
assertTrue(s.storyGrouping); assertTrue(s.shuffleTitles.isEmpty())
assertEquals(TIER_SUPPORTING, StoriesTiers[seriesKey("Casualty")]); assertEquals(TIER_CORE, StoriesTiers[seriesKey("ER")])
listOf("Skins", "Shameless", "Euphoria (US)", "Sex Education").forEach { m ->
(6 until 23).forEach { h -> assertFalse("$m at $h", m in part(STORIES_NUMBER, h).titles) } }
assertTrue("Shameless" in part(STORIES_NUMBER, 0).titles)
}
@Test fun frontlineKeepsAdultSeriesLateAndTheCostOfWarAsItsEvening() {
val f = ch(FRONTLINE_NUMBER)
assertEquals(FRONTLINE_COST, part(FRONTLINE_NUMBER, 22).group)
listOf("Jarhead (2005)", "Platoon (1986)", "Apocalypse Now (1979)", "Full Metal Jacket (1987)", "Black Hawk Down (2001)", "1917 (2019)", "The Hurt Locker (2008)",
"Fury (2014)", "American Sniper (2014)", "Come and See (1985)", "Schindler's List (1993)").forEach { assertTrue(it, it in FrontlineCostOfWar) }
// Adult military series never in the afternoon.
listOf("Strike Back", "Ultimate Force", "Generation Kill", "Masters of the Air", "SAS Rogue Heroes").forEach { t ->
f.dayParts.filter { t in it.titles }.forEach { assertTrue("$t at ${it.fromHour}", it.fromHour in 0..5) } }
assertTrue(f.dayParts.any { "SEAL Team" in it.titles && it.fromHour == 12 })
FrontlineFilms.forEach { assertTrue(it, FilmIdentity.of(it).imdb != null) }
}
@Test fun eachChannelPlansSensiblyOnItsOwnWithTheNetworkRest() {
// A plain plan from a fake pool of each film channel's own list: back to back, inside its blocks, no film twice within its rest.
val start = LocalDate.of(2026, 11, 23).atStartOfDay(ZoneOffset.UTC).toInstant().toEpochMilli()
listOf(SILVER_SCREEN_NUMBER, OUTLAW_NUMBER).forEach { n ->
val p = ch(n)
val pool = p.searches.mapIndexed { i, t -> PoolSeries("f$n-$i", FilmIdentity.of(t).title, listOf(PoolEpisode("f$n-$i", "s", EpisodeMark(1, 1), t, (95 + i % 40) * 60_000L)), year = FilmIdentity.of(t).year) }
val plan = extendFilmSchedule(pool, ScheduleCursor(), start, start + 3 * 24 * 3_600_000L, p.filmRestMs!!, dayParts = p.dayParts, zone = ZoneOffset.UTC)
assertTrue(plan.entries.size > 20)
plan.entries.zipWithNext().forEach { (a, b) -> assertEquals(a.endMs, b.startMs) }
assertEquals(plan.entries.size, plan.entries.map { it.seriesId }.toSet().size)
}
}
}
@@ -190,7 +190,7 @@ class WeightedRotationTest {
}
@Test fun theApprovedChannelsAreWeightedAndTotsBedtimeIsNot() {
assertEquals(listOf(101, 102, 103, 104, 106, 107, 108, 202, 203, 204, 601, 602, 603, 604, 605, 614), SmartChannels.filter { it.tierWeights != null }.map { it.number }.sorted())
assertEquals(listOf(101, 102, 103, 104, 106, 107, 108, 112, 202, 203, 204, 601, 602, 603, 604, 605, 614), SmartChannels.filter { it.tierWeights != null }.map { it.number }.sorted())
// Riot, Terra, Ring X and Junior keep equal turns.
assertTrue(SmartChannels.filter { it.number in setOf(105, 201, 401, 611) }.all { it.tierWeights == null })
assertEquals(setOf(103, 202, 204, 601, 604, 605, 614), SmartChannels.filter { it.catalogueScaleHours != null }.map { it.number }.toSet())
+11
View File
@@ -0,0 +1,11 @@
# Frontline (313): war cinema across every era
**Status:** approved by Paul on 23 November 2026, with the films, the military-series strand and his clarification of the evening.
**Identity:** military and war cinema across all eras, modern conflicts and contemporary military drama, anti-war films and films about the psychological and human cost of war. It doesn't present every military film as action entertainment.
**The block rule (as OUTLAW):** tone, subject and age suitability decide a film's block, never its year. Earlier dayparts are classic adventures and missions; the darker, more intense and adult films come later.
**Time of day:** 06:00 to 12:00 Britain at War. 12:00 to 17:00 On Duty: a run of one military series each afternoon at 12:00 (SEAL Team, The Unit, Tour of Duty, Our Girl, Foyle's War, Soldier Soldier, World on Fire, The Rat Patrol on Saturday at 15:00), then films. 17:00 to 21:00 Missions and Escapes. 21:00 to 01:00 **The Cost of War**, the signature evening block (Jarhead, Platoon, Apocalypse Now, Full Metal Jacket, Black Hawk Down, 1917, The Hurt Locker, Fury, American Sniper, Warfare, Come and See, Schindler's List, The Pianist and more). 01:00 to 06:00 After Hours, with the adult military series (Strike Back, Ultimate Force, Generation Kill, SAS Rogue Heroes, Masters of the Air, all TV-MA) and modern combat films.
**Age suitability:** the afternoon series are TV-14 or lower; the TV-MA series run only after 01:00. **Not available:** Battle of Britain, Sands of Iwo Jima, Downfall, All Quiet on the Western Front (2022), Where Eagles Dare, Das Boot, Son of Saul, Black Book, Sand Castle, Ice Cold in Alex and Dunkirk (1958) have no playable copy; Stalingrad isn't on the server.
+9
View File
@@ -0,0 +1,9 @@
# Silver Screen (312): golden-age cinema
**Status:** approved by Paul on 23 November 2026, with 109 playable films and the proposed dayparts.
**Identity:** golden-age cinema from the silents to 1965: Hollywood's studio era, screwball comedy and musicals, Ealing and the British classics, Powell and Pressburger, David Lean, Hitchcock and film noir.
**Time of day:** 06:00 to 12:00 Morning Pictures (comedies, musicals, romance). 12:00 to 18:00 Matinee (the morning's films, Ealing, British classics and adventure). 18:00 to 21:00 The Great Films. 21:00 to 01:00 Hitchcock and Noir. 01:00 to 06:00 Late Show. **Hitchcock Nights**, every Friday from 20:00: Hitchcock with a complementary noir or classic thriller (the wider Hitchcock and noir rotation continues on other nights). **Sunday Epic**, Sunday 14:00, one a week: Gone with the Wind, Ben-Hur, Lawrence of Arabia, The Bridge on the River Kwai, Spartacus, The Ten Commandments, Doctor Zhivago.
**Crossover:** Roman Holiday, Sabrina, Top Hat, Singin' in the Rain and Casablanca are shared with Romance, It's a Wonderful Life with Christmas and the Drive-In; In Which We Serve, Paths of Glory and The Bridge on the River Kwai with Frontline. The five-day network rest keeps shared films apart.
+9
View File
@@ -0,0 +1,9 @@
# Orbit Stories (112): character-driven drama
**Status:** approved by Paul on 23 November 2026, with all 48 series and five dayparts plus overnight repeats.
**Identity:** drama you follow week to week, in the spirit of Living, E4 and Sky One: small towns, hospitals, teens and families. **Against its neighbours:** Signature is prestige drama, Evidence is crime, Orbit 1 is comedy.
**Time of day:** 06:00 to 12:00 Small towns and big hearts. 12:00 to 17:00 On the wards. 17:00 to 20:00 After school. 20:00 to 23:00 Primetime drama. 23:00 to 02:00 Late and grown-up. 02:00 to 06:00 repeats of the primetime and late series, so nothing mature reaches the daytime.
**Order:** every series runs in season and episode order. **Tiers:** Casualty and Holby City (550+ episodes each) are supporting, everything else core, so the long medical dramas don't dominate. **Mature series** (Skins, Shameless, Euphoria, Sex Education) only from 23:00. Shameless is the Channel 4 original. The Good Doctor is left out: the server's Korean original shares its name.
+2 -2
View File
@@ -27,8 +27,8 @@ SLUGS = {101: "orbit-1", 102: "orbit-2", 103: "orbit-three", 104: "orbit-gold",
305: "orbit-after-dark", 306: "orbit-vhs", 307: "orbit-romance", 308: "orbit-detour", 309: "orbit-britx",
310: "orbit-christmas", 401: "orbit-ring-x", 601: "orbit-vortex", 602: "orbit-heroes", 603: "orbit-x",
604: "orbit-rewind", 605: "orbit-toonz", 611: "orbit-junior", 612: "orbit-wonder", 613: "orbit-pixelz", 614: "orbit-tots",
111: "orbit-americana", 311: "orbit-outlaw"}
NAMED = {"AMERICANA_NUMBER": 111, "OUTLAW_NUMBER": 311, "TOTS_NUMBER": 614, "DRIVE_IN_NUMBER": 300, "VORTEX_NUMBER": 601, "CHRISTMAS_NUMBER": 310, "AFTER_DARK_NUMBER": 305}
111: "orbit-americana", 311: "orbit-outlaw", 112: "orbit-stories", 312: "orbit-silver-screen", 313: "orbit-frontline"}
NAMED = {"AMERICANA_NUMBER": 111, "OUTLAW_NUMBER": 311, "STORIES_NUMBER": 112, "SILVER_SCREEN_NUMBER": 312, "FRONTLINE_NUMBER": 313, "TOTS_NUMBER": 614, "DRIVE_IN_NUMBER": 300, "VORTEX_NUMBER": 601, "CHRISTMAS_NUMBER": 310, "AFTER_DARK_NUMBER": 305}
PACKS = {"orbit-mistletoe": "orbit-mistletoe", "orbit-sakura": "orbit-sakura"}
def run(*cmd): subprocess.run(cmd, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)