diff --git a/android/app/src/main/java/tv/orbit/classic/Americana.kt b/android/app/src/main/java/tv/orbit/classic/Americana.kt new file mode 100644 index 00000000..a6040e1a --- /dev/null +++ b/android/app/src/main/java/tv/orbit/classic/Americana.kt @@ -0,0 +1,30 @@ +package tv.orbit.classic + +/** + * Americana (Paul, 23 November 2026): a day of classic American television, the 1950s to the early 90s, built as a journey + * through the US schedule. Hometown family shows in the morning, a Western afternoon, sitcoms at teatime, primetime soaps and + * mysteries, then cops and drama late. Orbit 1 is today's comfort sitcoms, Gold is British comedy and Orbit 2 is British + * teatime with 80s action; Americana is American television history as an experience. Every title is the server's own name, + * checked playable with English sound (docs/channels/americana.md). If the evening grows into a channel of its own, it can + * split off as Americana After Hours. + */ +internal const val AMERICANA_NUMBER = 111 + +private val AmericanaMornings = listOf("The Waltons", "Little House on the Prairie", "Lassie", "Leave It to Beaver", "The Andy Griffith Show", + "Dr. Quinn, Medicine Woman", "Highway to Heaven") +/** The classic TV Westerns are Americana's; Western films are OUTLAW's. */ +private val AmericanaWesterns = listOf("Gunsmoke", "Bonanza", "Maverick", "The Rifleman", "The Big Valley") +private val AmericanaSitcoms = listOf("I Love Lucy", "Bewitched", "I Dream of Jeannie", "The Dick Van Dyke Show", "Gilligan's Island", "The Addams Family", + "The Munsters", "The Brady Bunch", "Hogan's Heroes", "Happy Days", "Laverne & Shirley", "All in the Family", "The Jeffersons", "Sanford and Son", + "WKRP in Cincinnati", "Newhart", "ALF") +private val AmericanaPrimetime = listOf("Dallas", "Falcon Crest", "The Love Boat", "Fantasy Island", "Murder, She Wrote", "Perry Mason", "Matlock") +private val AmericanaLate = listOf("The Rockford Files", "Kojak", "Starsky & Hutch", "Charlie's Angels", "Hill Street Blues", "Moonlighting", "Simon & Simon", + "St. Elsewhere", "L.A. Law") + +internal val AmericanaShows get() = (AmericanaMornings + AmericanaWesterns + AmericanaSitcoms + AmericanaPrimetime + AmericanaLate).distinct() +internal val AmericanaDayParts get() = listOf( + DayPart(6, 12, AmericanaMornings), DayPart(12, 17, AmericanaWesterns), DayPart(17, 20, AmericanaSitcoms), + DayPart(20, 23, AmericanaPrimetime), DayPart(23, 3, AmericanaLate), DayPart(3, 6, AmericanaSitcoms)) +/** The serials run in story order; everything else stands alone and mixes. */ +private val AmericanaInOrder = setOf("Dallas", "Falcon Crest", "Hill Street Blues", "St. Elsewhere", "L.A. Law", "Dr. Quinn, Medicine Woman") +internal val AmericanaMixed get() = AmericanaShows.toSet() - AmericanaInOrder 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 1bed8140..9433faba 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), + 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), 205 to ChannelBranding("orbit-kitchen", "Orbit Kitchen", R.drawable.orbit_kitchen_epg, R.drawable.orbit_kitchen_background, R.drawable.orbit_kitchen_bug, ChannelCategory.Documentaries), 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 c33262db..c7c87b21 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelPresets.kt @@ -50,6 +50,8 @@ internal val ChannelPresets = listOf( // Signature, Unscripted and Orbit Christmas (Paul, 6 November 2026). ChannelPreset(109, "Orbit Signature", SignatureShows, smartOnly = true), 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), ChannelPreset(CHRISTMAS_NUMBER, "Orbit Christmas", ChristmasFilms, smartOnly = true, films = true), ChannelPreset(206, "Orbit Home", HomeShows, smartOnly = true), ChannelPreset(108, "Orbit Play", PlayShows, smartOnly = true), 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 75cd9346..c0a71926 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt @@ -246,7 +246,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, 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, 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 @@ -271,13 +271,13 @@ private val CatalogueScaledChannels get() = setOf(604, 204, 103, 202, 605) private val SmartChannelMixed: Map> 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, 203 to WildMixed, 202 to OdysseyMixed, 107 to EvidenceMixed, 611 to JuniorMixed, - 205 to KitchenShows.toSet(), 206 to HomeShows.toSet(), 108 to PlayShows.toSet(), 110 to UnscriptedMixed) + 205 to KitchenShows.toSet(), 206 to HomeShows.toSet(), 108 to PlayShows.toSet(), 110 to UnscriptedMixed, AMERICANA_NUMBER to AmericanaMixed) /** Dark Files, from the programming bible: crime by day, mysteries early evening, the paranormal late. */ 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) + 109 to SignatureDayParts, 110 to UnscriptedDayParts, CHRISTMAS_NUMBER to ChristmasDayParts, AMERICANA_NUMBER to AmericanaDayParts) /** 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 8e817270..0d069f57 100644 --- a/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt +++ b/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt @@ -64,6 +64,12 @@ internal val BaseBriefs: List = listOf( themes = w("cook", "chef", "kitchen", "bak", "recipe", "food", "restaurant", "cuisine", "dish", "eat"), against = w("murder", "killer", "crime", "dating"), era = 1985 to 2026), Brief(206, "Orbit Home", setOf("Series"), setOf("Home and Garden"), setOf("Home and Garden"), themes = w("home", "house", "property", "renovat", "makeover", "garden", "design", "build", "restor", "interior"), against = w("murder", "killer", "crime", "haunt"), era = 1985 to 2026), + // Paul, 23 November 2026: classic American television, the 50s to the early 90s: family shows, TV Westerns, sitcoms, + // primetime soaps and mysteries, cops and drama. American by origin; Orbit 1, Gold and Orbit 2 keep their own. + Brief(AMERICANA_NUMBER, "Americana", setOf("Series"), setOf("Comedy", "Drama", "Western", "Family", "Crime", "Mystery", "Soap"), + themes = w("family", "farm", "ranch", "small town", "frontier", "cowboy", "marshal", "sheriff", "sitcom", "neighbo", "oil", "detective", "private investigator", + "lawyer", "precinct", "cruise", "island"), + against = w("anime", "animated", "documentary", "reality", "british", "england", "london"), era = 1950 to 1995), // Paul, 23 November 2026: the dedicated game-show and quiz channel, modern and international formats alongside the classics. Brief(108, "Orbit Play", setOf("Series"), setOf("Game Show"), setOf("Game Show"), themes = w("quiz", "game show", "contestant", "prize", "question", "puzzle", "challenge"), against = w("murder", "killer", "dating", "survivor"), era = 1960 to 2026, uk = true, 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 6d7e7062..d71a987e 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(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, 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/res/drawable-nodpi/orbit_americana_background.webp b/android/app/src/main/res/drawable-nodpi/orbit_americana_background.webp new file mode 100644 index 00000000..5c9b2aea Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_americana_background.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_americana_bug.webp b/android/app/src/main/res/drawable-nodpi/orbit_americana_bug.webp new file mode 100644 index 00000000..15886100 Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_americana_bug.webp differ diff --git a/android/app/src/main/res/drawable-nodpi/orbit_americana_epg.webp b/android/app/src/main/res/drawable-nodpi/orbit_americana_epg.webp new file mode 100644 index 00000000..8037da7c Binary files /dev/null and b/android/app/src/main/res/drawable-nodpi/orbit_americana_epg.webp differ diff --git a/android/app/src/main/res/raw/ident_111.mp4 b/android/app/src/main/res/raw/ident_111.mp4 new file mode 100644 index 00000000..02a059ba Binary files /dev/null and b/android/app/src/main/res/raw/ident_111.mp4 differ diff --git a/android/app/src/test/java/tv/orbit/classic/AmericanaTest.kt b/android/app/src/test/java/tv/orbit/classic/AmericanaTest.kt new file mode 100644 index 00000000..ec2e5af3 --- /dev/null +++ b/android/app/src/test/java/tv/orbit/classic/AmericanaTest.kt @@ -0,0 +1,37 @@ +package tv.orbit.classic + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +/** Americana (Paul, 23 November 2026): classic American television through the day. */ +class AmericanaTest { + private val p get() = SmartChannels.first { it.number == AMERICANA_NUMBER } + private fun at(hour: Int) = p.dayParts.first { it.days.isEmpty() && it.covers(hour) } + + @Test fun itIsAChannelWithAllDayCovered() { + assertEquals("Americana", p.name) + (0 until 24).forEach { h -> assertTrue("hour $h", p.dayParts.any { it.covers(h) }) } + assertEquals(45, AmericanaShows.size) + assertTrue(ChannelBrands.forNumber(AMERICANA_NUMBER) != null) + } + + @Test fun theDayIsAJourney() { + assertTrue("The Waltons" in at(8).titles); assertTrue("Gunsmoke" in at(14).titles) + assertTrue("I Love Lucy" in at(18).titles); assertTrue("Dallas" in at(21).titles) + assertTrue("The Rockford Files" in at(0).titles); assertTrue("Bewitched" in at(4).titles) + assertFalse("Dallas" in at(8).titles) + } + + @Test fun serialsRunInOrderAndTheRestMix() { + assertFalse("Dallas" in AmericanaMixed); assertFalse("Hill Street Blues" in AmericanaMixed) + assertTrue("Bewitched" in AmericanaMixed) + } + + @Test fun neighboursKeepTheirOwn() { + val orbit2 = SmartChannels.first { it.number == 102 }.searches + listOf("Knight Rider", "The A-Team", "Magnum, P.I.").forEach { assertFalse(it in AmericanaShows); assertTrue(it in orbit2) } + assertFalse("Columbo" in AmericanaShows) + } +} 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 55e65749..1544f443 100644 --- a/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/ChannelPresetsTest.kt @@ -167,7 +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. - assertEquals(36, SmartChannels.size) + // Americana joined on 23 November 2026. + assertEquals(37, SmartChannels.size) } @Test fun ringXKeepsItsWeeknightsAndFallsBackToTheVault() { @@ -198,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), 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), SmartChannels.map { it.number }.toSet()) } @Test fun kitchenHomeAndPlayAreBrandedInTheirBlocks() { diff --git a/docs/channels/americana.md b/docs/channels/americana.md new file mode 100644 index 00000000..99e37ced --- /dev/null +++ b/docs/channels/americana.md @@ -0,0 +1,13 @@ +# Americana (111): classic American television + +**Status:** approved by Paul on 23 November 2026, from the new-channel research (the "New Orbit channel ideas" doc). + +**Identity:** a day of classic American television, the 1950s to the early 90s, built as a journey through the US schedule. **Against its neighbours:** Orbit 1 is today's comfort sitcoms, Gold is British comedy, Orbit 2 is British teatime with 80s action. Americana is American television history as an experience. + +**Time of day:** 06:00 to 12:00 hometown mornings (The Waltons, Little House on the Prairie, Lassie, Leave It to Beaver, The Andy Griffith Show, Dr. Quinn, Highway to Heaven). 12:00 to 17:00 the Western afternoon (Gunsmoke, Bonanza, Maverick, The Rifleman, The Big Valley). 17:00 to 20:00 sitcom teatime (I Love Lucy, Bewitched, I Dream of Jeannie, The Dick Van Dyke Show, Happy Days, All in the Family, The Jeffersons and more). 20:00 to 23:00 primetime soaps and mysteries (Dallas, Falcon Crest, The Love Boat, Fantasy Island, Murder, She Wrote, Perry Mason, Matlock). 23:00 to 03:00 cops and drama (The Rockford Files, Kojak, Starsky & Hutch, Charlie's Angels, Hill Street Blues, Moonlighting, Simon & Simon, St. Elsewhere, L.A. Law). 03:00 to 06:00 sitcom repeats. + +**Order:** Dallas, Falcon Crest, Hill Street Blues, St. Elsewhere, L.A. Law and Dr. Quinn run in story order; everything else mixes, with equal turns in each block. + +**Crossover:** preferred home of The Waltons and Little House on the Prairie, which Orbit 1 keeps as Sunday comfort-drama guests. The classic TV Westerns are Americana's; Western films are OUTLAW's. Orbit 2 keeps its 80s action, Junior's Nite Owl its sitcoms (Cheers, Taxi, M*A*S*H, The Golden Girls, Night Court), Evidence keeps Columbo. + +**Later:** if the evening feels like a channel of its own, it can split off as Americana After Hours. **Look:** desert highway at dusk, a diner, a neon motel sign, the Orbit planet rising over the mesa (the guide logo, bug and background are in; the ident and corner animation are still to come). diff --git a/docs/channels/orbit-1.md b/docs/channels/orbit-1.md index 6ba07ea8..2194afbf 100644 --- a/docs/channels/orbit-1.md +++ b/docs/channels/orbit-1.md @@ -19,3 +19,5 @@ **Crossover:** Red Dwarf's preferred home is Orbit Gold. Orbit Gold keeps Keeping Up Appearances, Only Fools and Horses and The Vicar of Dibley. **New arrivals:** US and British family sitcoms from the 80s to the 2010s, and gentle Sunday-evening drama. + +**23 November 2026 (Paul):** Americana (111) is the preferred home of The Waltons and Little House on the Prairie; Orbit 1 keeps them as Sunday comfort-drama guests.