diff --git a/android/app/src/main/java/tv/orbit/classic/ChairRotation.kt b/android/app/src/main/java/tv/orbit/classic/ChairRotation.kt index aec56b7d..33d77f18 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChairRotation.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChairRotation.kt @@ -137,7 +137,7 @@ internal fun rotationCards(blocks: List, airings: Map allowed(e) && (b.rules.isEmpty() || fitsRule(e, b.rules) != null) } + .filter { e -> allowed(e) && OutlawRules.fits(b.channel, b.group, e) && (b.rules.isEmpty() || fitsRule(e, b.rules) != null) } .sortedByDescending { it.community ?: 0.0 } .map { e -> RotationProposal(b.channel, b.group, e.id, e.name, e.year, true, "Already on ${b.channelName} at other times; " + listOfNotNull(e.genres?.take(2)?.joinToString(" and "), e.year?.toString(), e.rating?.let { "rated $it" }).joinToString(", ") + @@ -147,7 +147,7 @@ internal fun rotationCards(blocks: List, airings: Map e.type == "Movie" && e.id !in inChannel && carriedByAnother[e.id].orEmpty().none { it != b.channel } && e.id !in rejected(b.channel) && e.id !in decided && - carriedWorks[work(e)].isNullOrEmpty() && allowed(e) && (b.rules.isEmpty() || fitsRule(e, b.rules) != null) } + carriedWorks[work(e)].isNullOrEmpty() && allowed(e) && OutlawRules.fits(b.channel, b.group, e) && (b.rules.isEmpty() || fitsRule(e, b.rules) != null) } .distinctBy(::work) .map { e -> e to channelScore(e, brief, text) }.filter { it.second.first >= ROTATION_FIT } .sortedWith(compareByDescending>>> { it.second.first }.thenByDescending { it.first.community ?: 0.0 }) diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt b/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt index 9433faba..8411db50 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelBranding.kt @@ -24,6 +24,7 @@ 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), + 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), CHRISTMAS_NUMBER to ChannelBranding("orbit-christmas", "Orbit Christmas", R.drawable.orbit_christmas_epg, R.drawable.orbit_christmas_background, R.drawable.orbit_christmas_bug, ChannelCategory.Movies), 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 c7c87b21..bc4588ae 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt @@ -74,6 +74,8 @@ internal val ChannelPresets = listOf( "The Road to El Dorado", "Sinbad: Legend of the Seven Seas"), smartOnly = true, films = true), ChannelPreset(306, "Orbit VHS", listOf("Back to the Future", "Back to the Future Part II", "Back to the Future Part III", "The Goonies", "Gremlins", "Gremlins 2: The New Batch", "Ghostbusters (1984)", "Ghostbusters II", "E.T. the Extra-Terrestrial", "Honey, I Shrunk the Kids", "Flight of the Navigator", "The NeverEnding Story", "Labyrinth (1986)", "Willow", "The Princess Bride", "Short Circuit", "Batteries Not Included", "Explorers", "Stand by Me (1986)", "The Karate Kid (1984)", "The Karate Kid Part II", "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), 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)", diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt index c0a71926..793177f7 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt @@ -277,7 +277,7 @@ private val SmartChannelMixed: Map> get() = mapOf(101 to Orbit1 private val SmartChannelParts: Map> 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) + 109 to SignatureDayParts, 110 to UnscriptedDayParts, CHRISTMAS_NUMBER to ChristmasDayParts, AMERICANA_NUMBER to AmericanaDayParts, OUTLAW_NUMBER to OutlawDayParts) /** 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> get() = mapOf( diff --git a/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt b/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt index 0d069f57..54649dc6 100644 --- a/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt +++ b/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt @@ -92,6 +92,9 @@ internal val BaseBriefs: List = 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: 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), Brief(304, "Orbit Horror", setOf("Movie"), setOf("Horror"), setOf("Horror"), w("haunt", "demon", "possess", "killer", "evil", "terror", "ghost", "curse", "slasher", "nightmare"), w("documentary"), 1960 to 2026, current = true), Brief(305, "After Dark", setOf("Movie"), setOf("Horror", "Thriller", "Science Fiction"), themes = w("cult", "bizarre", "strange", "exploitation", "b-movie", "grindhouse", "creature", "mutant", "zombie", "cannibal", "obscure", "surreal", "underground", "gore"), @@ -151,7 +154,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, 301, 302, 303, 304, 305, 306, 307, 308, 309, 601, 602, 603, 604, 605, 612, 613) +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 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,}") 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 ae9c416b..66b0b5eb 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]) - return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed]) + 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]) } } } diff --git a/android/app/src/main/java/tv/orbit/classic/Idents.kt b/android/app/src/main/java/tv/orbit/classic/Idents.kt index d71a987e..83cd79cb 100644 --- a/android/app/src/main/java/tv/orbit/classic/Idents.kt +++ b/android/app/src/main/java/tv/orbit/classic/Idents.kt @@ -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, 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, 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) diff --git a/android/app/src/main/java/tv/orbit/classic/Outlaw.kt b/android/app/src/main/java/tv/orbit/classic/Outlaw.kt new file mode 100644 index 00000000..075a8d16 --- /dev/null +++ b/android/app/src/main/java/tv/orbit/classic/Outlaw.kt @@ -0,0 +1,103 @@ +package tv.orbit.classic + +/** + * OUTLAW (Paul, 23 November 2026): Western cinema across the genre's whole history, from early Hollywood, Ford and Hawks, + * through Leone and the spaghetti Westerns, the revisionist Westerns of the 70s and 90s, to today's contemporary and + * neo-Westerns. On screen it's simply OUTLAW, with the Orbit planet as its signature. Classic TV Westerns are Americana's. + * + * A film's tone, content rating and suitability decide its block, never its release year: the daytime blocks are traditional, + * adventurous and accessible; After Sundown, 22:00 to 02:00, is the darker, more violent, unconventional and adult block. + * Every film is named with its year and settled by the server's IMDb ID (docs/channels/outlaw.md), each checked playable with + * English sound. + */ +internal const val OUTLAW_NUMBER = 311 +internal const val OUTLAW_SUNDOWN = "After Sundown" + +/** Traditional, adventurous and accessible. */ +private val OutlawDaytime = listOf( + "Stagecoach (1939)", "Destry Rides Again (1939)", "Fort Apache (1948)", "Winchester '73 (1950)", "Vera Cruz (1954)", "The Big Country (1958)", + "The Alamo (1960)", "Cat Ballou (1965)", "El Dorado (1966)", "Two Mules for Sister Sara (1970)", "My Name Is Nobody (1973)", "Silverado (1985)", + "City Slickers (1991)", "Maverick (1994)", "The Mask of Zorro (1998)", "Hidalgo (2004)", "Cowboys & Aliens (2011)", "The Lone Ranger (2013)") +/** The genre's landmarks, the early classics among them suitable for the morning too. */ +private val OutlawGreatClassics = listOf( + "The Ox-Bow Incident (1943)", "My Darling Clementine (1946)", "Red River (1948)", "High Noon (1952)", "Shane (1953)", "Johnny Guitar (1954)", + "The Searchers (1956)", "3:10 to Yuma (1957)", "Rio Bravo (1959)", "The Magnificent Seven (1960)", "The Man Who Shot Liberty Valance (1962)", + "Butch Cassidy and the Sundance Kid (1969)", "Little Big Man (1970)", "Jeremiah Johnson (1972)", "The Shootist (1976)") +private val OutlawGreatModern = listOf( + "Blazing Saddles (1974)", "Dances with Wolves (1990)", "Tombstone (1993)", "Wyatt Earp (1994)", "Legends of the Fall (1994)", + "Open Range (2003)", "Brokeback Mountain (2005)", "Appaloosa (2008)", "True Grit (2010)", "Meek's Cutoff (2010)", "The Magnificent Seven (2016)", + "The Ballad of Buster Scruggs (2018)", "The Rider (2017)", "First Cow (2019)", "News of the World (2020)", + "Horizon: An American Saga - Chapter 1 (2024)", "The Dead Don't Hurt (2023)") +/** After Sundown: dark, violent, unconventional and adult. */ +private val OutlawSundown = listOf( + "A Fistful of Dollars (1964)", "For a Few Dollars More (1965)", "The Good, the Bad and the Ugly (1966)", "Hang 'em High (1968)", + "Once Upon a Time in the West (1968)", "The Great Silence (1968)", "The Wild Bunch (1969)", "McCabe & Mrs. Miller (1971)", + "High Plains Drifter (1973)", "The Outlaw Josey Wales (1976)", "The Long Riders (1980)", "Pale Rider (1985)", "Young Guns (1988)", + "Young Guns II (1990)", "Unforgiven (1992)", "The Quick and the Dead (1995)", "Dead Man (1995)", "Lone Star (1996)", "Ravenous (1999)", + "The Missing (2003)", "The Proposition (2005)", "The Three Burials of Melquiades Estrada (2005)", "3:10 to Yuma (2007)", + "The Assassination of Jesse James by the Coward Robert Ford (2007)", "No Country for Old Men (2007)", "There Will Be Blood (2007)", + "Django Unchained (2012)", "The Homesman (2014)", "Bone Tomahawk (2015)", "Slow West (2015)", "The Hateful Eight (2015)", "The Revenant (2015)", + "Hell or High Water (2016)", "Brimstone (2016)", "Hostiles (2017)", "Wind River (2017)", "The Sisters Brothers (2018)", + "The Power of the Dog (2021)", "The Harder They Fall (2021)", "Old Henry (2021)", "Killers of the Flower Moon (2023)") + +internal val OutlawFilms get() = (OutlawDaytime + OutlawGreatClassics + OutlawGreatModern + OutlawSundown).distinct() +private val OutlawGreat get() = OutlawGreatClassics + OutlawGreatModern +internal val OutlawDayParts get() = listOf( + DayPart(6, 12, OutlawDaytime + OutlawGreatClassics, group = "Saddle Up"), + DayPart(12, 18, OutlawDaytime + OutlawGreat, group = "High Noon Matinee"), + DayPart(18, 22, OutlawGreat, group = "The Great Westerns"), + // Its own block ident ("outlaw.sundown") once the brand kit has one; until then the channel's ident. + DayPart(22, 2, OutlawSundown, group = OUTLAW_SUNDOWN), + DayPart(2, 6, OutlawGreat + OutlawSundown, group = "Late Trail")) + +/** The server's IMDb IDs for every OUTLAW film, so a remake or another film of the name is never taken for it. */ +internal val OutlawImdb: Map by lazy { mapOf( + "Stagecoach (1939)" to "tt0031971", "Destry Rides Again (1939)" to "tt0031225", "The Ox-Bow Incident (1943)" to "tt0036244", + "My Darling Clementine (1946)" to "tt0038762", "Red River (1948)" to "tt0040724", "Fort Apache (1948)" to "tt0040369", + "Winchester '73 (1950)" to "tt0043137", "High Noon (1952)" to "tt0044706", "Shane (1953)" to "tt0046303", "Johnny Guitar (1954)" to "tt0047136", + "Vera Cruz (1954)" to "tt0047647", "The Searchers (1956)" to "tt0049730", "3:10 to Yuma (1957)" to "tt0050086", + "The Big Country (1958)" to "tt0051411", "Rio Bravo (1959)" to "tt0053221", "The Magnificent Seven (1960)" to "tt0054047", + "The Alamo (1960)" to "tt0053580", "The Man Who Shot Liberty Valance (1962)" to "tt0056217", "A Fistful of Dollars (1964)" to "tt0058461", + "For a Few Dollars More (1965)" to "tt0059578", "Cat Ballou (1965)" to "tt0059017", "The Good, the Bad and the Ugly (1966)" to "tt0060196", + "El Dorado (1966)" to "tt0061619", "Hang 'em High (1968)" to "tt0061747", "Once Upon a Time in the West (1968)" to "tt0064116", + "The Great Silence (1968)" to "tt0063032", "Butch Cassidy and the Sundance Kid (1969)" to "tt0064115", "The Wild Bunch (1969)" to "tt0065214", + "Two Mules for Sister Sara (1970)" to "tt0065134", "Little Big Man (1970)" to "tt0065988", "McCabe & Mrs. Miller (1971)" to "tt0067411", + "Jeremiah Johnson (1972)" to "tt0068762", "High Plains Drifter (1973)" to "tt0068699", "My Name Is Nobody (1973)" to "tt0070215", + "Blazing Saddles (1974)" to "tt0071230", "The Outlaw Josey Wales (1976)" to "tt0075029", "The Shootist (1976)" to "tt0075213", + "The Long Riders (1980)" to "tt0081071", "Pale Rider (1985)" to "tt0089767", "Silverado (1985)" to "tt0090022", + "Young Guns (1988)" to "tt0096487", "Young Guns II (1990)" to "tt0100994", "Dances with Wolves (1990)" to "tt0099348", + "City Slickers (1991)" to "tt0101587", "Unforgiven (1992)" to "tt0105695", "Tombstone (1993)" to "tt0108358", "Maverick (1994)" to "tt0110478", + "Wyatt Earp (1994)" to "tt0111756", "Legends of the Fall (1994)" to "tt0110322", "The Quick and the Dead (1995)" to "tt0114214", + "Dead Man (1995)" to "tt0112817", "Lone Star (1996)" to "tt0116905", "The Mask of Zorro (1998)" to "tt0120746", "Ravenous (1999)" to "tt0129332", + "Open Range (2003)" to "tt0316356", "The Missing (2003)" to "tt0338188", "Hidalgo (2004)" to "tt0317648", + "The Proposition (2005)" to "tt0421238", "Brokeback Mountain (2005)" to "tt0388795", + "The Three Burials of Melquiades Estrada (2005)" to "tt0419294", "3:10 to Yuma (2007)" to "tt0381849", + "The Assassination of Jesse James by the Coward Robert Ford (2007)" to "tt0443680", "No Country for Old Men (2007)" to "tt0477348", + "There Will Be Blood (2007)" to "tt0469494", "Appaloosa (2008)" to "tt0800308", "True Grit (2010)" to "tt1403865", + "Meek's Cutoff (2010)" to "tt1518812", "Cowboys & Aliens (2011)" to "tt0409847", "Django Unchained (2012)" to "tt1853728", + "The Lone Ranger (2013)" to "tt1210819", "The Homesman (2014)" to "tt2398231", "Bone Tomahawk (2015)" to "tt2494362", + "Slow West (2015)" to "tt3205376", "The Hateful Eight (2015)" to "tt3460252", "The Revenant (2015)" to "tt1663202", + "The Magnificent Seven (2016)" to "tt2404435", "Hell or High Water (2016)" to "tt2582782", "Brimstone (2016)" to "tt1895315", + "Hostiles (2017)" to "tt5478478", "Wind River (2017)" to "tt5362988", "The Ballad of Buster Scruggs (2018)" to "tt6412452", + "The Sisters Brothers (2018)" to "tt4971344", "The Rider (2017)" to "tt6217608", "First Cow (2019)" to "tt9231040", + "News of the World (2020)" to "tt6878306", "The Power of the Dog (2021)" to "tt10293406", "The Harder They Fall (2021)" to "tt10696784", + "Old Henry (2021)" to "tt12731980", "Killers of the Flower Moon (2023)" to "tt5537002", + "Horizon: An American Saga - Chapter 1 (2024)" to "tt17505010", "The Dead Don't Hurt (2023)" to "tt22773644") } + +/** + * The Director's Chair's rule for OUTLAW's blocks: After Sundown takes adult ratings or dark themes (revenge, massacre, bounty, + * outlaw gangs, cannibals, brutal survival); the daytime blocks take accessible ratings and an adventure, family or comedy tone. + * Tone outranks year. Other channels and blocks are unaffected. + */ +internal object OutlawRules { + private val Adult = setOf("R", "NC-17", "15", "18", "TV-MA", "GB-15", "GB-18", "X") + private val Dark = Regex("\\b(revenge|vengeance|massacre|bounty|scalp|cannibal|brutal|slaughter|outlaw gang|killers?|murder|savage|blood)", RegexOption.IGNORE_CASE) + private val Daytime = setOf("Saddle Up", "High Noon Matinee") + fun dark(e: TitleEvidence) = e.rating in Adult || Dark.containsMatchIn(e.overview.orEmpty()) + fun fits(channel: Int, group: String, e: TitleEvidence): Boolean = when { + channel != OUTLAW_NUMBER -> true + group == OUTLAW_SUNDOWN -> dark(e) + group in Daytime -> !dark(e) + else -> true + } +} diff --git a/android/app/src/main/res/drawable-nodpi/orbit_outlaw_background.webp b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_background.webp new file mode 100644 index 00000000..26650f76 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_background.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_outlaw_bug.webp b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_bug.webp new file mode 100644 index 00000000..8a0b708b Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_bug.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_outlaw_epg.webp b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_epg.webp new file mode 100644 index 00000000..063b78f0 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_outlaw_epg.webp differ diff --git a/android/app/src/main/res/raw/ident_311.mp4 b/android/app/src/main/res/raw/ident_311.mp4 new file mode 100644 index 00000000..1ab65032 Binary files /dev/null and b/android/app/src/main/res/raw/ident_311.mp4 differ diff --git a/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt b/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt index 1544f443..ca37ce7c 100644 --- a/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt @@ -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 joined on 23 November 2026. - assertEquals(37, SmartChannels.size) + // Americana and OUTLAW joined on 23 November 2026. + assertEquals(38, 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), 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), SmartChannels.map { it.number }.toSet()) } @Test fun kitchenHomeAndPlayAreBrandedInTheirBlocks() { diff --git a/android/app/src/test/java/tv/orbit/classic/OutlawTest.kt b/android/app/src/test/java/tv/orbit/classic/OutlawTest.kt new file mode 100644 index 00000000..aaa91e12 --- /dev/null +++ b/android/app/src/test/java/tv/orbit/classic/OutlawTest.kt @@ -0,0 +1,41 @@ +package tv.orbit.classic + +import org.json.JSONObject +import org.json.JSONArray +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +/** OUTLAW (Paul, 23 November 2026): Western cinema, its blocks decided by tone and rating, not year. */ +class OutlawTest { + private val p get() = SmartChannels.first { it.number == OUTLAW_NUMBER } + private fun at(hour: Int) = p.dayParts.first { it.covers(hour) } + + @Test fun itIsAFilmChannelOfNinetyOneWesternsEachSettled() { + assertEquals("OUTLAW", p.name); assertTrue(p.filmRestMs != null) + assertEquals(91, OutlawFilms.size) + OutlawFilms.forEach { assertTrue(it, FilmIdentity.of(it).imdb != null && FilmIdentity.of(it).year != null) } + (0 until 24).forEach { h -> assertTrue(p.dayParts.any { it.covers(h) }) } + assertEquals("OUTLAW", ChannelBrands.forNumber(OUTLAW_NUMBER)!!.displayName) + } + + @Test fun afterSundownIsTheDarkBlockAndTheMorningIsAccessible() { + assertEquals(OUTLAW_SUNDOWN, at(23).group); assertEquals(OUTLAW_SUNDOWN, at(1).group) + listOf("Django Unchained (2012)", "The Hateful Eight (2015)", "The Wild Bunch (1969)", "Bone Tomahawk (2015)", "The Proposition (2005)", "There Will Be Blood (2007)") + .forEach { assertTrue(it, it in at(23).titles); assertFalse(it, it in at(8).titles) } + assertTrue("Brokeback Mountain (2005)" in at(19).titles) + assertTrue("Stagecoach (1939)" in at(8).titles); assertTrue("The Searchers (1956)" in at(8).titles) + assertFalse("Tombstone (1993)" in at(8).titles) // R-rated: the evening, not the morning + } + + @Test fun theChairPlacesByToneNotYear() { + fun film(rating: String?, overview: String) = TitleEvidence.of(JSONObject().put("id", "w").put("type", "Movie").put("name", "A Western").put("year", 2020) + .put("overview", overview).put("genres", JSONArray(listOf("Western"))).put("studios", JSONObject.NULL).put("rating", rating ?: JSONObject.NULL) + .put("countries", JSONObject.NULL).put("taglines", JSONObject.NULL)) + val dark = film("R", "A bounty hunter seeks revenge after a massacre."); val family = film("PG", "A boy and his horse ride to the county fair.") + assertTrue(OutlawRules.fits(OUTLAW_NUMBER, OUTLAW_SUNDOWN, dark)); assertFalse(OutlawRules.fits(OUTLAW_NUMBER, OUTLAW_SUNDOWN, family)) + assertTrue(OutlawRules.fits(OUTLAW_NUMBER, "Saddle Up", family)); assertFalse(OutlawRules.fits(OUTLAW_NUMBER, "Saddle Up", dark)) + assertTrue(OutlawRules.fits(304, OUTLAW_SUNDOWN, family)) // other channels are unaffected + } +} diff --git a/docs/channels/outlaw.md b/docs/channels/outlaw.md new file mode 100644 index 00000000..e05d7f04 --- /dev/null +++ b/docs/channels/outlaw.md @@ -0,0 +1,13 @@ +# OUTLAW (311): Western cinema + +**Status:** approved by Paul on 23 November 2026, with all 91 films and the five blocks. + +**Identity:** Western cinema across the genre's whole evolution: traditional Westerns, spaghetti Westerns, revisionist Westerns, contemporary and neo-Westerns. On screen simply OUTLAW, the Orbit planet its signature (the brand kit's lockup and gunshot ident). Classic TV Westerns are Americana's, so OUTLAW is cinema only. + +**The block rule:** a film's tone, content rating and suitability decide its block, never its release year. The earlier dayparts are traditional, adventurous and accessible; After Sundown is the darker, more adult block. + +**Time of day:** 06:00 to 12:00 Saddle Up (accessible classics and adventure). 12:00 to 18:00 High Noon Matinee (the morning's films and the great Westerns). 18:00 to 22:00 The Great Westerns (the landmarks, including Brokeback Mountain as a modern character-driven Western). 22:00 to 02:00 **After Sundown**: A Fistful of Dollars (1964), For a Few Dollars More (1965), The Good, the Bad and the Ugly (1966), Hang 'em High (1968), Once Upon a Time in the West (1968), The Great Silence (1968), The Wild Bunch (1969), McCabe & Mrs. Miller (1971), High Plains Drifter (1973), The Outlaw Josey Wales (1976), The Long Riders (1980), Pale Rider (1985), Young Guns (1988), Young Guns II (1990), Unforgiven (1992), The Quick and the Dead (1995), Dead Man (1995), Lone Star (1996), Ravenous (1999), The Missing (2003), The Proposition (2005), The Three Burials of Melquiades Estrada (2005), 3:10 to Yuma (2007), The Assassination of Jesse James by the Coward Robert Ford (2007), No Country for Old Men (2007), There Will Be Blood (2007), Django Unchained (2012), The Homesman (2014), Bone Tomahawk (2015), Slow West (2015), The Hateful Eight (2015), The Revenant (2015), Hell or High Water (2016), Brimstone (2016), Hostiles (2017), Wind River (2017), The Sisters Brothers (2018), The Power of the Dog (2021), The Harder They Fall (2021), Old Henry (2021), Killers of the Flower Moon (2023). 02:00 to 06:00 Late Trail (the great Westerns and After Sundown's). + +**The Director's Chair:** a Western suggested for OUTLAW names its block. After Sundown takes adult ratings or dark themes (revenge, massacres, bounty hunters, outlaw gangs, cannibals, brutal survival); the daytime blocks take accessible ratings and an adventure, family or comedy tone. Tone outranks year. Western series are never suggested here. + +**Not available:** She Wore a Yellow Ribbon, Rio Grande, How the West Was Won, True Grit (1969) and Paint Your Wagon have no playable copy; Django (1966), Duck, You Sucker and The Salvation aren't on the server. They can join when they arrive. diff --git a/tools/import-brand-kit.py b/tools/import-brand-kit.py index 9260c0e9..4c2d6038 100644 --- a/tools/import-brand-kit.py +++ b/tools/import-brand-kit.py @@ -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"} -NAMED = {"AMERICANA_NUMBER": 111, "TOTS_NUMBER": 614, "DRIVE_IN_NUMBER": 300, "VORTEX_NUMBER": 601, "CHRISTMAS_NUMBER": 310, "AFTER_DARK_NUMBER": 305} + 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} PACKS = {"orbit-mistletoe": "orbit-mistletoe", "orbit-sakura": "orbit-sakura"} def run(*cmd): subprocess.run(cmd, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)