Build 80: PUNCHLINE (314) and SYNDICATE (114)

Approved by Paul on 25 November 2026.

PUNCHLINE: comedy films across every era. 260 approved films by year and
IMDb ID; Detour, VHS and Silver Screen stay the homes of theirs, which play
here only in the events that name them. Ratings decide the block (nothing
adult before 21:00). Spoof Friday, Star of the Month (one star a month,
DayPart.months), Sunday Classic and Best of British.

SYNDICATE: crime series and gangster cinema, about 70/30. 16 home series and
4 guests (Signature and Evidence stay their homes); Peaky Blinders and Power's
two sequels held. 155 films, five-day rest here and across the network.
The Family, Heist Friday, The Firm, and Triads and Yakuza with ATLAS on the
last Saturday (DayPart.monthWeek = LAST_WEEK), whose films alone take ATLAS's
original-language rule here. Series pinned by IMDb ID.

Kit-style logos, backgrounds, idents and 19 block idents with new stings.
Every existing channel plans byte-for-byte as before from one TV snapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 20:53:43 +00:00
co-authored by Claude Opus 5.5
parent 731fc3df2e
commit 01dcb6fbad
71 changed files with 1461 additions and 35 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ plugins {
id("org.jetbrains.kotlin.plugin.compose")
}
/** The release's build number: versionCode is this x 10 plus the edition's channel. */
val ORBIT_BUILD = 79
val ORBIT_BUILD = 80
android {
namespace = "tv.orbit.classic"
compileSdk = 36
@@ -79,7 +79,8 @@ internal object AtlasPlayback {
"Wolf Warrior 2" to "zh", "Y Tu Mamá También" to "es", "Yi Yi" to "zh", "[REC]" to "es",
"Signal" to "ko")
private val byKey: Map<String, String> by lazy { originals.mapKeys { (title, _) -> key(title) } }
/** ATLAS's titles, then SYNDICATE's crossover films (whose languages are its own list), by [key]. */
private val byKey: Map<String, String> by lazy { (SyndicateCrossoverLanguages + originals).mapKeys { (title, _) -> key(title) } }
/** A title as looked up: the programme's own part, without a year the library adds ("Alice in Borderland (2020)"). */
private fun key(title: String) = title.substringBefore(" / ").trim().replace(Regex(" \\(\\d{4}\\)$"), "").lowercase(java.util.Locale.ROOT)
@@ -93,7 +94,14 @@ internal object AtlasPlayback {
}
/** ATLAS's rule for this programme, or null: another channel, or a title with no recorded original language. */
fun forProgramme(channel: Int?, programme: String): AtlasTracks? = if (channel != ATLAS_NUMBER) null else forTitle(programme)
fun forProgramme(channel: Int?, programme: String): AtlasTracks? = if (!appliesOn(channel, programme)) null else forTitle(programme)
/**
* Where the rule holds: everything on ATLAS, and on SYNDICATE only its crossover films with ATLAS (25 November 2026), so
* every other programme there, and on every other channel, plays as before.
*/
fun appliesOn(channel: Int?, title: String): Boolean = channel == ATLAS_NUMBER ||
(channel == SYNDICATE_NUMBER && key(title) in SyndicateCrossoverLanguages.keys.mapTo(HashSet(), ::key))
/** The sound track in the original language, or null when the file has none (then the title doesn't play this way). */
fun audioIndex(rule: AtlasTracks, audio: List<AtlasTrack>): Int? =
@@ -131,7 +139,7 @@ internal object AtlasPlayback {
* title's rule, and a title with no recorded original language passes nothing.
*/
fun sourceCheck(channel: Int, title: String): ((org.json.JSONObject) -> Boolean)? {
if (channel != ATLAS_NUMBER) return null
if (!appliesOn(channel, title)) return null
val rule = forTitle(title) ?: return { false }
return { source -> sourceUnderstood(rule, source) }
}
@@ -159,13 +167,16 @@ internal object AtlasPlayback {
*/
internal val AtlasPinnedSeries: Map<String, String> = mapOf("The Killing" to "tt0826760", "The 8 Show" to "tt30423279")
/** The channels whose series are pinned this way: ATLAS's two, and every SYNDICATE series (25 November 2026). */
private val PinnedSeries: Map<Int, Map<String, String>> by lazy { mapOf(ATLAS_NUMBER to AtlasPinnedSeries, SYNDICATE_NUMBER to SyndicatePinnedSeries) }
/**
* [candidates] from a name search, or, on ATLAS, when none has the listed name and the show is pinned, the library's
* series with its IMDb ID ([lookup] is one request) that also has the listed name. Every other channel and show: unchanged.
*/
internal fun atlasPinnedCandidates(channel: Int, listed: String, candidates: List<SeriesCandidate>, lookup: (String) -> List<org.json.JSONObject>): List<SeriesCandidate> {
if (channel != ATLAS_NUMBER || candidates.any { seriesKey(it.title) == seriesKey(listed) }) return candidates
val imdb = AtlasPinnedSeries[listed] ?: return candidates
if (candidates.any { seriesKey(it.title) == seriesKey(listed) }) return candidates
val imdb = PinnedSeries[channel]?.get(listed) ?: return candidates
val pinned = runCatching { lookup("imdb.$imdb") }.getOrDefault(emptyList()).mapNotNull { row ->
val id = row.optString("Id"); val title = EmbyClient.clean(row.optString("Name"), 160)
if (row.optString("Type") != "Series" || !EmbyClient.validId(id) || seriesKey(title) != seriesKey(listed)) return@mapNotNull null
@@ -68,6 +68,25 @@ internal val BlockIdents: Map<String, BlockIdent> = mapOf(
"atlas.asiaextreme" to BlockIdent(R.raw.block_atlas_asiaextreme, R.raw.block_atlas_asiaextreme_sting),
"atlas.passport" to BlockIdent(R.raw.block_atlas_passport, R.raw.block_atlas_passport_sting),
"frontline.cost" to BlockIdent(R.raw.block_frontline_cost, R.raw.block_frontline_cost_sting),
"punchline.matinee" to BlockIdent(R.raw.block_punchline_matinee, R.raw.block_punchline_matinee_sting),
"punchline.afternoon" to BlockIdent(R.raw.block_punchline_afternoon, R.raw.block_punchline_afternoon_sting),
"punchline.startime" to BlockIdent(R.raw.block_punchline_startime, R.raw.block_punchline_startime_sting),
"punchline.late" to BlockIdent(R.raw.block_punchline_late, R.raw.block_punchline_late_sting),
"punchline.cult" to BlockIdent(R.raw.block_punchline_cult, R.raw.block_punchline_cult_sting),
"punchline.spoof" to BlockIdent(R.raw.block_punchline_spoof, R.raw.block_punchline_spoof_sting),
"punchline.star" to BlockIdent(R.raw.block_punchline_star, R.raw.block_punchline_star_sting),
"punchline.classic" to BlockIdent(R.raw.block_punchline_classic, R.raw.block_punchline_classic_sting),
"punchline.british" to BlockIdent(R.raw.block_punchline_british, R.raw.block_punchline_british_sting),
"syndicate.publicenemies" to BlockIdent(R.raw.block_syndicate_publicenemies, R.raw.block_syndicate_publicenemies_sting),
"syndicate.corner" to BlockIdent(R.raw.block_syndicate_corner, R.raw.block_syndicate_corner_sting),
"syndicate.job" to BlockIdent(R.raw.block_syndicate_job, R.raw.block_syndicate_job_sting),
"syndicate.mademen" to BlockIdent(R.raw.block_syndicate_mademen, R.raw.block_syndicate_mademen_sting),
"syndicate.crimeprime" to BlockIdent(R.raw.block_syndicate_crimeprime, R.raw.block_syndicate_crimeprime_sting),
"syndicate.underworld" to BlockIdent(R.raw.block_syndicate_underworld, R.raw.block_syndicate_underworld_sting),
"syndicate.family" to BlockIdent(R.raw.block_syndicate_family, R.raw.block_syndicate_family_sting),
"syndicate.heist" to BlockIdent(R.raw.block_syndicate_heist, R.raw.block_syndicate_heist_sting),
"syndicate.firm" to BlockIdent(R.raw.block_syndicate_firm, R.raw.block_syndicate_firm_sting),
"syndicate.triads" to BlockIdent(R.raw.block_syndicate_triads, R.raw.block_syndicate_triads_sting),
"silver.hitchcock" to BlockIdent(R.raw.block_silver_hitchcock, R.raw.block_silver_hitchcock_sting),
"stories.afterhours" to BlockIdent(R.raw.block_stories_afterhours, R.raw.block_stories_afterhours_sting),
// Saturday Mornings (Paul, 6 November 2026): the weekend cartoons on Heroes, Orbit X and Rewind, each in its own
@@ -29,6 +29,8 @@ internal object ChannelBrands {
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),
ATLAS_NUMBER to ChannelBranding("orbit-atlas", "ATLAS", R.drawable.orbit_atlas_epg, R.drawable.orbit_atlas_background, R.drawable.orbit_atlas_bug, ChannelCategory.Entertainment),
SYNDICATE_NUMBER to ChannelBranding("orbit-syndicate", "SYNDICATE", R.drawable.orbit_syndicate_epg, R.drawable.orbit_syndicate_background, R.drawable.orbit_syndicate_bug, ChannelCategory.Entertainment),
PUNCHLINE_NUMBER to ChannelBranding("orbit-punchline", "PUNCHLINE", R.drawable.orbit_punchline_epg, R.drawable.orbit_punchline_background, R.drawable.orbit_punchline_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),
@@ -57,6 +57,8 @@ internal val ChannelPresets = listOf(
// Orbit Stories (Paul, 23 November 2026): character-driven drama. See Stories.kt.
ChannelPreset(STORIES_NUMBER, "Orbit Stories", StoriesShows, smartOnly = true),
ChannelPreset(ATLAS_NUMBER, "ATLAS", AtlasShows, smartOnly = true),
ChannelPreset(SYNDICATE_NUMBER, "SYNDICATE", SyndicateShows, smartOnly = true),
ChannelPreset(PUNCHLINE_NUMBER, "PUNCHLINE", PunchlineFilms, smartOnly = true, films = 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),
@@ -40,20 +40,31 @@ internal data class DayPart(val fromHour: Int, val toHour: Int, val titles: List
val rotating: List<String>? = null, val rotateCap: Int = 0,
/** How many hours a week the rotation's own slot runs, so a long show counts only for what a week can hold. */
val rotateWeekHours: Int = 0,
/** A monthly event: only in this week of the month (1 = the first seven days), counted by the night it starts (ATLAS, 2026). */
val monthWeek: Int? = null) {
/**
* A monthly event: only in this week of the month (1 = the first seven days), counted by the night it starts (ATLAS, 2026).
* [LAST_WEEK] is the month's last seven days, so "the last Saturday" (SYNDICATE, 25 November 2026).
*/
val monthWeek: Int? = null,
/** Only in these months, counted by the night it starts; empty is every month (PUNCHLINE's Star of the Month, 25 November 2026). */
val months: Set<java.time.Month> = emptySet()) {
fun covers(hour: Int) = if (fromHour <= toHour) hour in fromHour until toHour else hour >= fromHour || hour < toHour
/** An event that runs past midnight belongs to the night it started, so its small hours count from the day before. */
fun covers(hour: Int, day: java.time.DayOfWeek) = covers(hour) && (days.isEmpty() || (if (fromHour > toHour && hour < toHour) day.minus(1) else day) in days)
/** [covers], with a monthly event kept to its week of the month. */
fun covers(time: java.time.ZonedDateTime): Boolean {
if (!covers(time.hour, time.dayOfWeek)) return false
val week = monthWeek ?: return true
if (monthWeek == null && months.isEmpty()) return true
val night = if (fromHour > toHour && time.hour < toHour) time.toLocalDate().minusDays(1) else time.toLocalDate()
if (months.isNotEmpty() && night.month !in months) return false
val week = monthWeek ?: return true
if (week == LAST_WEEK) return night.dayOfMonth > night.lengthOfMonth() - 7
return (night.dayOfMonth - 1) / 7 + 1 == week
}
}
/** [DayPart.monthWeek] for the month's last seven days. */
internal const val LAST_WEEK = 0
/** What makes a channel itself. The engine below knows nothing about any particular channel. */
internal data class ChannelProgramming(val number: Int, val name: String, val searches: List<String>, val seriesCount: Int = 3,
/** Set for a film channel: how long before a film may air again, as long as the pool allows it. */
@@ -267,7 +278,9 @@ internal val BuiltInChannels = listOf(
// ATLAS (24 November 2026) plays international programmes in their own language: no English-sound filter; its own
// rule ([AtlasPlayback]) is applied as its pools are read instead.
englishAudio = it.number != ATLAS_NUMBER,
channelFilms = if (it.number == 401) PpvSunday else if (it.number == ATLAS_NUMBER) AtlasFilms else emptyList(), tierWeights = SmartChannelTiers[it.number], adaptiveFilmRest = it.number in AdaptiveFilmRestChannels,
channelFilms = if (it.number == 401) PpvSunday else if (it.number == ATLAS_NUMBER) AtlasFilms else if (it.number == SYNDICATE_NUMBER) SyndicateFilms else emptyList(), tierWeights = SmartChannelTiers[it.number], adaptiveFilmRest = it.number in AdaptiveFilmRestChannels,
// SYNDICATE (25 November 2026) books films every day, so each rests five days, as across the network.
fileRestMs = if (it.number == SYNDICATE_NUMBER) NETWORK_FILM_REST_MS else SAME_FILE_MS,
catalogueScaleHours = if (it.number in CatalogueScaledChannels) CATALOGUE_SCALE_HOURS else null,
catalogueScaleFloor = CatalogueScaleFloors[it.number] ?: MIN_CATALOGUE_SCALE, storyGrouping = it.number in StoryGroupingChannels,
shorts = if (it.number == 605) ToonZShorts else null) }
@@ -278,7 +291,7 @@ internal 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, STORIES_NUMBER, ATLAS_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, ATLAS_NUMBER, SYNDICATE_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
@@ -291,13 +304,14 @@ 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, STORIES_NUMBER to StoriesTiers, ATLAS_NUMBER to AtlasTiers, 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, ATLAS_NUMBER to AtlasTiers, SYNDICATE_NUMBER to SyndicateTiers, 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,
* then Orbit Three, Odyssey and ToonZ (approved 4 November 2026; Vortex and Tots are set above).
* then Orbit Three, Odyssey and ToonZ (approved 4 November 2026; Vortex and Tots are set above), and SYNDICATE, whose six-part
* series would otherwise come round every few days (25 November 2026).
*/
private val CatalogueScaledChannels get() = setOf(604, 204, 103, 202, 605)
private val CatalogueScaledChannels get() = setOf(604, 204, 103, 202, 605, SYNDICATE_NUMBER)
/** Shows that play in a mixed order on channels whose identity is agreed. See ChannelIdentities.kt. */
private val SmartChannelMixed: Map<Int, Set<String>> get() = mapOf(101 to Orbit1Mixed, 102 to Orbit2Mixed, 103 to ThreeMixed, 104 to GoldMixed, 105 to RiotMixed,
@@ -309,7 +323,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, ATLAS_NUMBER to AtlasDayParts, OUTLAW_NUMBER to OutlawDayParts, SILVER_SCREEN_NUMBER to SilverScreenDayParts, STORIES_NUMBER to StoriesDayParts)
109 to SignatureDayParts, 110 to UnscriptedDayParts, CHRISTMAS_NUMBER to ChristmasDayParts, AMERICANA_NUMBER to AmericanaDayParts, ATLAS_NUMBER to AtlasDayParts, SYNDICATE_NUMBER to SyndicateDayParts, PUNCHLINE_NUMBER to PunchlineDayParts, 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(
@@ -468,7 +468,10 @@ internal class ChannelScheduler(private val store: ScheduleStore,
val (existing, plan) = synchronized(PlanEdits.lock) {
val existing = store.loadPlan(userId, number)
val plan = topUpPlan(existing, base, pool?.series?.let { withOpenApprovals(withoutOddRuntimes(withoutFailed(it, store.loadFailed(userId)), number, store.runtimeReleases().load()), choices) }?.let { if (programming.mixedTurns) mixedTurnOrder(it, number) else it }, now, programming.filmRestMs, programming.finishTogether, programming.dayParts,
avoid = { show, startMs, endMs -> others(show, startMs, endMs) }, shuffle = programming.shuffleEpisodes, mixed = programming::mixes,
// SYNDICATE, a series channel that books films every day, also rests a film another channel shows within five days
// (25 November 2026), as the film channels do: a preference, given up only when nothing else fits, like a clash.
avoid = { show, startMs, endMs -> others(show, startMs, endMs) || (number == SYNDICATE_NUMBER && show.isFilm && restingElsewhere(show, startMs)) },
shuffle = programming.shuffleEpisodes, mixed = programming::mixes,
weightOf = programming.tierWeights?.let { programming::weightOf }, adaptiveRest = programming.adaptiveFilmRest, fileRestMs = programming.fileRestMs, stories = programming.storyGrouping, shorts = programming.shorts, marathon = programming.marathon,
seasonEndMs = seasonEndMs(number, now), network = network) ?: throw EmbyCheckException("${programming.name} has no episodes to schedule.")
// Franchise films booked side by side go in release order, among the new bookings only (Continuity.kt).
@@ -14,8 +14,8 @@ internal data class FilmIdentity(val title: String, val year: Int? = null, val i
private val withYear = Regex("""^(.*\S)\s+\((\d{4})\)$""")
fun of(entry: String): FilmIdentity {
val trimmed = entry.trim()
val match = withYear.matchEntire(trimmed) ?: return FilmIdentity(trimmed, imdb = FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed])
return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed])
val match = withYear.matchEntire(trimmed) ?: return FilmIdentity(trimmed, imdb = FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed])
return FilmIdentity(match.groupValues[1], match.groupValues[2].toInt(), FilmImdb[trimmed] ?: OutlawImdb[trimmed] ?: NewChannelImdb[trimmed] ?: AtlasImdb[trimmed] ?: PunchlineImdb[trimmed] ?: SyndicateImdb[trimmed])
}
}
}
@@ -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(ATLAS_NUMBER to R.raw.ident_113, 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,
private val IdentVideos = mapOf(ATLAS_NUMBER to R.raw.ident_113, SYNDICATE_NUMBER to R.raw.ident_114, PUNCHLINE_NUMBER to R.raw.ident_314, 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,510 @@
package tv.orbit.classic
import java.time.DayOfWeek
import java.time.Month
/**
* PUNCHLINE (Paul, 25 November 2026): comedy cinema across every era, from the Marx Brothers to Happy Gilmore 2: the comedy
* stars, the spoofs and Mel Brooks, British comedy and modern adult comedy. Detour keeps its own identity (parties, road trips,
* big dumb comedy) and stays the preferred home of its films, as VHS does of its: those play here only in Spoof Friday and
* Star of the Month. Silver Screen's comedies play only in Sunday Classic, and the four Christmas comedies only in December.
*
* 260 approved films, each by its year and IMDb ID ([PunchlineImdb]), every copy checked playable (audit-20261125-newfilm).
* 217 have a slot here; the other 43 are Detour's and VHS's that no event of PUNCHLINE's names, so they play only at home. Ratings
* decide the block, as the app reads them ([ratingBand]): nothing adult or unrated starts before 21:00, apart from unrated
* classics from before 1968. Films rest seven days here and five across the network.
*/
internal const val PUNCHLINE_NUMBER = 314
/** Morning Matinee, 06:00 to 12:00: U, PG and gentle 12s. */
private val PunchlineMatinee = listOf(
"Fletch (1985)", "Spies Like Us (1985)", "The Great Outdoors (1988)", "Dirty Rotten Scoundrels (1988)", "What About Bob? (1991)",
"Groundhog Day (1993)", "The Italian Job (1969)", "Monty Python and the Holy Grail (1975)", "Bean (1997)", "Notting Hill (1999)",
"Johnny English (2003)", "Mr. Bean's Holiday (2007)", "Johnny English Reborn (2011)", "The Pink Panther (1963)",
"What's Up, Doc? (1972)", "Sleeper (1973)", "The Return of the Pink Panther (1975)", "The Pink Panther Strikes Again (1976)",
"Murder by Death (1976)", "Silver Streak (1976)", "Annie Hall (1977)", "Smokey and the Bandit (1977)", "The Producers (1967)",
"Young Frankenstein (1974)", "Silent Movie (1976)", "High Anxiety (1977)", "To Be or Not to Be (1983)", "Life Stinks (1991)",
"Robin Hood: Men in Tights (1993)", "Dracula: Dead and Loving It (1995)", "Nacho Libre (2006)", "Airplane II: The Sequel (1982)",
"Top Secret! (1984)", "Galaxy Quest (1999)")
/** Afternoon Classics, 12:00 to 17:00: the 80s and 90s favourites and older classics first, and every everyday film that isn't adult. */
private val PunchlineAfternoon = listOf(
"Fletch (1985)", "Spies Like Us (1985)", "Raising Arizona (1987)", "Throw Momma from the Train (1987)", "The Great Outdoors (1988)",
"Dirty Rotten Scoundrels (1988)", "Weekend at Bernie's (1989)", "What About Bob? (1991)", "City Slickers (1991)",
"Wayne's World 2 (1993)", "Groundhog Day (1993)", "So I Married an Axe Murderer (1993)", "Clueless (1995)", "Rush Hour (1998)",
"Rush Hour 2 (2001)", "The Pink Panther (1963)", "What's Up, Doc? (1972)", "Sleeper (1973)", "The Return of the Pink Panther (1975)",
"The Pink Panther Strikes Again (1976)", "Murder by Death (1976)", "Silver Streak (1976)", "Annie Hall (1977)",
"Smokey and the Bandit (1977)", "The Producers (1967)", "Young Frankenstein (1974)", "Silent Movie (1976)", "High Anxiety (1977)",
"To Be or Not to Be (1983)", "Life Stinks (1991)", "Robin Hood: Men in Tights (1993)", "Dracula: Dead and Loving It (1995)",
"Airplane II: The Sequel (1982)", "Top Secret! (1984)", "Hot Shots! Part Deux (1993)", "Naked Gun 33⅓: The Final Insult (1994)",
"Austin Powers: International Man of Mystery (1997)", "Galaxy Quest (1999)", "Austin Powers: The Spy Who Shagged Me (1999)",
"Austin Powers in Goldmember (2002)", "Kung Pow! Enter the Fist (2002)", "Scary Movie 4 (2006)", "The Naked Gun (2025)",
"The Wedding Singer (1998)", "Little Nicky (2000)", "Mr. Deeds (2002)", "Anger Management (2003)", "50 First Dates (2004)",
"The Longest Yard (2005)", "Click (2006)", "I Now Pronounce You Chuck & Larry (2007)", "You Don't Mess with the Zohan (2008)",
"Grown Ups (2010)", "Just Go with It (2011)", "Grown Ups 2 (2013)", "Murder Mystery (2019)", "Hubie Halloween (2020)",
"Happy Gilmore 2 (2025)", "Meet the Parents (2000)", "Starsky & Hutch (2004)", "Along Came Polly (2004)", "Meet the Fockers (2004)",
"Night at the Museum (2006)", "Night at the Museum: Battle of the Smithsonian (2009)", "Little Fockers (2010)",
"Night at the Museum: Secret of the Tomb (2014)", "Zoolander 2 (2016)", "The Italian Job (1969)",
"Monty Python and the Holy Grail (1975)", "Bean (1997)", "Notting Hill (1999)", "Johnny English (2003)", "Mr. Bean's Holiday (2007)",
"Johnny English Reborn (2011)", "The Nutty Professor (1996)", "Bowfinger (1999)", "Nutty Professor II: The Klumps (2000)",
"Tower Heist (2011)", "Coming 2 America (2021)", "The Cable Guy (1996)", "The Truman Show (1998)", "Bruce Almighty (2003)",
"Fun with Dick and Jane (2005)", "Yes Man (2008)", "Shanghai Noon (2000)", "School of Rock (2003)", "Mean Girls (2004)",
"Nacho Libre (2006)", "Crazy, Stupid, Love. (2011)", "Pitch Perfect (2012)", "Hunt for the Wilderpeople (2016)", "Free Guy (2021)",
"The Lost City (2022)", "Barbie (2023)", "The Fall Guy (2024)", "A Night at the Roxbury (1998)", "Kicking & Screaming (2005)",
"Anchorman 2: The Legend Continues (2013)", "Daddy's Home (2015)", "Daddy's Home 2 (2017)",
"Eurovision Song Contest: The Story of Fire Saga (2020)")
/** Star Time, 17:00 to 21:00: the comedy stars, nothing adult. */
private val PunchlineStarTime = listOf(
"The Wedding Singer (1998)", "Little Nicky (2000)", "Mr. Deeds (2002)", "Anger Management (2003)", "50 First Dates (2004)",
"The Longest Yard (2005)", "Click (2006)", "I Now Pronounce You Chuck & Larry (2007)", "You Don't Mess with the Zohan (2008)",
"Grown Ups (2010)", "Just Go with It (2011)", "Grown Ups 2 (2013)", "Murder Mystery (2019)", "Hubie Halloween (2020)",
"Happy Gilmore 2 (2025)", "Meet the Parents (2000)", "Starsky & Hutch (2004)", "Along Came Polly (2004)", "Meet the Fockers (2004)",
"Night at the Museum (2006)", "Night at the Museum: Battle of the Smithsonian (2009)", "Little Fockers (2010)",
"Night at the Museum: Secret of the Tomb (2014)", "Zoolander 2 (2016)", "The Nutty Professor (1996)", "Bowfinger (1999)",
"Nutty Professor II: The Klumps (2000)", "Tower Heist (2011)", "Coming 2 America (2021)", "The Cable Guy (1996)",
"The Truman Show (1998)", "Bruce Almighty (2003)", "Fun with Dick and Jane (2005)", "Yes Man (2008)", "A Night at the Roxbury (1998)",
"Kicking & Screaming (2005)", "Anchorman 2: The Legend Continues (2013)", "Daddy's Home (2015)", "Daddy's Home 2 (2017)",
"Eurovision Song Contest: The Story of Fire Saga (2020)")
/** Late Laughs, 21:00 to 01:00: modern adult comedy and the stars at their rudest. */
private val PunchlineLate = listOf(
"National Lampoon's Animal House (1978)", "My Cousin Vinny (1992)", "Bad Boys (1995)", "The Big Lebowski (1998)",
"The Wedding Singer (1998)", "Little Nicky (2000)", "Mr. Deeds (2002)", "Anger Management (2003)", "50 First Dates (2004)",
"The Longest Yard (2005)", "Click (2006)", "I Now Pronounce You Chuck & Larry (2007)", "You Don't Mess with the Zohan (2008)",
"Grown Ups (2010)", "Just Go with It (2011)", "Grown Ups 2 (2013)", "Murder Mystery (2019)", "Hubie Halloween (2020)",
"Happy Gilmore 2 (2025)", "There's Something About Mary (1998)", "Meet the Parents (2000)", "Starsky & Hutch (2004)",
"Along Came Polly (2004)", "Meet the Fockers (2004)", "Night at the Museum (2006)",
"Night at the Museum: Battle of the Smithsonian (2009)", "Little Fockers (2010)", "Night at the Museum: Secret of the Tomb (2014)",
"Zoolander 2 (2016)", "Life of Brian (1979)", "Monty Python's The Meaning of Life (1983)", "Withnail & I (1987)",
"A Fish Called Wanda (1988)", "Four Weddings and a Funeral (1994)", "The Full Monty (1997)", "Shaun of the Dead (2004)",
"Hot Fuzz (2007)", "Death at a Funeral (2007)", "In Bruges (2008)", "Four Lions (2010)", "The Inbetweeners Movie (2011)",
"Paul (2011)", "The World's End (2013)", "The Inbetweeners 2 (2014)", "Kingsman: The Secret Service (2014)", "The Jerk (1979)",
"Harlem Nights (1989)", "Another 48 Hrs. (1990)", "Boomerang (1992)", "The Nutty Professor (1996)", "Bowfinger (1999)", "Life (1999)",
"Nutty Professor II: The Klumps (2000)", "Tower Heist (2011)", "Dolemite Is My Name (2019)", "Coming 2 America (2021)",
"The Cable Guy (1996)", "The Truman Show (1998)", "Me, Myself & Irene (2000)", "Bruce Almighty (2003)",
"Fun with Dick and Jane (2005)", "Yes Man (2008)", "Mr. Popper's Penguins (2011)", "Blazing Saddles (1974)",
"History of the World: Part I (1981)", "Shanghai Noon (2000)", "Super Troopers (2001)", "School of Rock (2003)", "Mean Girls (2004)",
"Tenacious D in The Pick of Destiny (2006)", "Nacho Libre (2006)", "Knocked Up (2007)", "Forgetting Sarah Marshall (2008)",
"Role Models (2008)", "I Love You, Man (2009)", "Zombieland (2009)", "Crazy, Stupid, Love. (2011)", "Pitch Perfect (2012)",
"The Heat (2013)", "What We Do in the Shadows (2014)", "Spy (2015)", "Trainwreck (2015)", "Vacation (2015)",
"Hunt for the Wilderpeople (2016)", "Deadpool (2016)", "The Nice Guys (2016)", "Game Night (2018)", "Blockers (2018)", "Tag (2018)",
"Super Troopers 2 (2018)", "Booksmart (2019)", "Good Boys (2019)", "Palm Springs (2020)", "Free Guy (2021)", "Vacation Friends (2021)",
"The Lost City (2022)", "Bullet Train (2022)", "Confess, Fletch (2022)", "Cocaine Bear (2023)", "Barbie (2023)",
"No Hard Feelings (2023)", "Bottoms (2023)", "Hit Man (2024)", "The Fall Guy (2024)", "Ricky Stanicky (2024)",
"This Is Spinal Tap (1984)", "Walk Hard: The Dewey Cox Story (2007)", "MacGruber (2010)", "Popstar: Never Stop Never Stopping (2016)",
"A Night at the Roxbury (1998)", "Kicking & Screaming (2005)", "The Campaign (2012)", "Anchorman 2: The Legend Continues (2013)",
"Get Hard (2015)", "Daddy's Home (2015)", "Daddy's Home 2 (2017)", "Eurovision Song Contest: The Story of Fire Saga (2020)")
/** Cult Corner, 01:00 to 06:00: British comedy, spoofs and cult favourites. */
private val PunchlineCult = listOf(
"National Lampoon's Animal House (1978)", "Fletch (1985)", "Spies Like Us (1985)", "Raising Arizona (1987)",
"Throw Momma from the Train (1987)", "The Great Outdoors (1988)", "Dirty Rotten Scoundrels (1988)", "Weekend at Bernie's (1989)",
"What About Bob? (1991)", "City Slickers (1991)", "My Cousin Vinny (1992)", "Wayne's World 2 (1993)", "Groundhog Day (1993)",
"So I Married an Axe Murderer (1993)", "Bad Boys (1995)", "Clueless (1995)", "The Big Lebowski (1998)", "Rush Hour (1998)",
"Rush Hour 2 (2001)", "The Italian Job (1969)", "Monty Python and the Holy Grail (1975)", "Life of Brian (1979)",
"Monty Python's The Meaning of Life (1983)", "Withnail & I (1987)", "A Fish Called Wanda (1988)", "Four Weddings and a Funeral (1994)",
"The Full Monty (1997)", "Bean (1997)", "Notting Hill (1999)", "Johnny English (2003)", "Shaun of the Dead (2004)", "Hot Fuzz (2007)",
"Death at a Funeral (2007)", "Mr. Bean's Holiday (2007)", "In Bruges (2008)", "Four Lions (2010)", "The Inbetweeners Movie (2011)",
"Paul (2011)", "Johnny English Reborn (2011)", "The World's End (2013)", "The Inbetweeners 2 (2014)",
"Kingsman: The Secret Service (2014)", "The Pink Panther (1963)", "What's Up, Doc? (1972)", "Sleeper (1973)",
"The Return of the Pink Panther (1975)", "The Pink Panther Strikes Again (1976)", "Murder by Death (1976)", "Silver Streak (1976)",
"Annie Hall (1977)", "Smokey and the Bandit (1977)", "The Jerk (1979)", "The Producers (1967)", "Blazing Saddles (1974)",
"Young Frankenstein (1974)", "Silent Movie (1976)", "High Anxiety (1977)", "History of the World: Part I (1981)",
"To Be or Not to Be (1983)", "Life Stinks (1991)", "Robin Hood: Men in Tights (1993)", "Dracula: Dead and Loving It (1995)",
"Airplane II: The Sequel (1982)", "Top Secret! (1984)", "This Is Spinal Tap (1984)", "Hot Shots! Part Deux (1993)",
"Naked Gun 33⅓: The Final Insult (1994)", "Austin Powers: International Man of Mystery (1997)", "Galaxy Quest (1999)",
"Austin Powers: The Spy Who Shagged Me (1999)", "Austin Powers in Goldmember (2002)", "Kung Pow! Enter the Fist (2002)",
"Scary Movie 4 (2006)", "Walk Hard: The Dewey Cox Story (2007)", "MacGruber (2010)", "Popstar: Never Stop Never Stopping (2016)",
"The Naked Gun (2025)")
/** Spoof Friday: Mel Brooks and the spoofs, Detour's and VHS's own included. */
private val PunchlineSpoofs = listOf(
"The Producers (1967)", "Blazing Saddles (1974)", "Young Frankenstein (1974)", "Silent Movie (1976)", "High Anxiety (1977)",
"History of the World: Part I (1981)", "To Be or Not to Be (1983)", "Life Stinks (1991)", "Robin Hood: Men in Tights (1993)",
"Dracula: Dead and Loving It (1995)", "Airplane II: The Sequel (1982)", "Top Secret! (1984)", "This Is Spinal Tap (1984)",
"Hot Shots! Part Deux (1993)", "Naked Gun 33⅓: The Final Insult (1994)", "Austin Powers: International Man of Mystery (1997)",
"Galaxy Quest (1999)", "Austin Powers: The Spy Who Shagged Me (1999)", "Austin Powers in Goldmember (2002)",
"Kung Pow! Enter the Fist (2002)", "Scary Movie 4 (2006)", "Walk Hard: The Dewey Cox Story (2007)", "MacGruber (2010)",
"Popstar: Never Stop Never Stopping (2016)", "The Naked Gun (2025)", "Spaceballs (1987)", "Airplane! (1980)",
"The Naked Gun: From the Files of Police Squad! (1988)", "The Naked Gun 2½: The Smell of Fear (1991)", "Hot Shots! (1991)",
"Scary Movie (2000)", "Scary Movie 2 (2001)", "Not Another Teen Movie (2001)", "Scary Movie 3 (2003)",
"Team America: World Police (2004)", "Hot Rod (2007)")
/** Sunday Classic: comedy from before 1980, nothing adult (it starts at 15:00), Silver Screen's shared here. */
private val PunchlineClassics = listOf(
"The Pink Panther (1963)", "What's Up, Doc? (1972)", "Sleeper (1973)", "The Return of the Pink Panther (1975)", "The Pink Panther Strikes Again (1976)", "Murder by Death (1976)", "Silver Streak (1976)", "Annie Hall (1977)", "Smokey and the Bandit (1977)", "Kind Hearts and Coronets (1949)", "The Lavender Hill Mob (1951)", "The Ladykillers (1955)", "Duck Soup (1933)", "A Night at the Opera (1935)", "Bringing Up Baby (1938)", "His Girl Friday (1940)", "The Philadelphia Story (1940)", "Arsenic and Old Lace (1944)", "Some Like It Hot (1959)", "The Apartment (1960)", "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964)")
/** Best of British: Ealing to Edgar Wright, BritX's shared here. */
private val PunchlineBritish = listOf(
"The Italian Job (1969)", "Monty Python and the Holy Grail (1975)", "Life of Brian (1979)",
"Monty Python's The Meaning of Life (1983)", "Withnail & I (1987)", "A Fish Called Wanda (1988)", "Four Weddings and a Funeral (1994)",
"The Full Monty (1997)", "Bean (1997)", "Notting Hill (1999)", "Johnny English (2003)", "Shaun of the Dead (2004)", "Hot Fuzz (2007)",
"Death at a Funeral (2007)", "Mr. Bean's Holiday (2007)", "In Bruges (2008)", "Four Lions (2010)", "The Inbetweeners Movie (2011)",
"Paul (2011)", "Johnny English Reborn (2011)", "The World's End (2013)", "The Inbetweeners 2 (2014)",
"Kingsman: The Secret Service (2014)")
/** Star of the Month: Jim Carrey, Detour's and VHS's films of theirs included. */
private val PunchlineCarrey = listOf(
"The Cable Guy (1996)", "The Truman Show (1998)", "Me, Myself & Irene (2000)", "Bruce Almighty (2003)",
"Fun with Dick and Jane (2005)", "Yes Man (2008)", "Mr. Popper's Penguins (2011)", "Ace Ventura: Pet Detective (1994)",
"The Mask (1994)", "Dumb and Dumber (1994)", "Ace Ventura: When Nature Calls (1995)", "Liar Liar (1997)", "Dumb and Dumber To (2014)")
/** Jim Carrey films that may start at 20:00 (nothing adult). */
private val PunchlineCarreyEarly = listOf(
"The Cable Guy (1996)", "The Truman Show (1998)", "Bruce Almighty (2003)", "Fun with Dick and Jane (2005)", "Yes Man (2008)",
"Ace Ventura: Pet Detective (1994)", "The Mask (1994)", "Dumb and Dumber (1994)", "Ace Ventura: When Nature Calls (1995)",
"Liar Liar (1997)", "Dumb and Dumber To (2014)")
/** Star of the Month: Eddie Murphy, Detour's and VHS's films of theirs included. */
private val PunchlineMurphy = listOf(
"Harlem Nights (1989)", "Another 48 Hrs. (1990)", "Boomerang (1992)", "The Nutty Professor (1996)", "Bowfinger (1999)", "Life (1999)",
"Nutty Professor II: The Klumps (2000)", "Tower Heist (2011)", "Dolemite Is My Name (2019)", "Coming 2 America (2021)",
"48 Hrs. (1982)", "Trading Places (1983)", "Beverly Hills Cop (1984)", "Beverly Hills Cop II (1987)", "Coming to America (1988)")
/** Eddie Murphy films that may start at 20:00 (nothing adult). */
private val PunchlineMurphyEarly = listOf(
"The Nutty Professor (1996)", "Bowfinger (1999)", "Nutty Professor II: The Klumps (2000)", "Tower Heist (2011)",
"Coming 2 America (2021)")
/** Star of the Month: Will Ferrell, Detour's and VHS's films of theirs included. */
private val PunchlineFerrell = listOf(
"A Night at the Roxbury (1998)", "Kicking & Screaming (2005)", "The Campaign (2012)", "Anchorman 2: The Legend Continues (2013)",
"Get Hard (2015)", "Daddy's Home (2015)", "Daddy's Home 2 (2017)", "Eurovision Song Contest: The Story of Fire Saga (2020)",
"Old School (2003)", "Anchorman: The Legend of Ron Burgundy (2004)", "Talladega Nights: The Ballad of Ricky Bobby (2006)",
"Blades of Glory (2007)", "Semi-Pro (2008)", "Step Brothers (2008)", "The Other Guys (2010)")
/** Will Ferrell films that may start at 20:00 (nothing adult). */
private val PunchlineFerrellEarly = listOf(
"A Night at the Roxbury (1998)", "Kicking & Screaming (2005)", "Anchorman 2: The Legend Continues (2013)", "Daddy's Home (2015)",
"Daddy's Home 2 (2017)", "Eurovision Song Contest: The Story of Fire Saga (2020)", "Anchorman: The Legend of Ron Burgundy (2004)",
"Talladega Nights: The Ballad of Ricky Bobby (2006)", "Blades of Glory (2007)", "The Other Guys (2010)")
/** Star of the Month: Ben Stiller, Detour's and VHS's films of theirs included. */
private val PunchlineStiller = listOf(
"There's Something About Mary (1998)", "Meet the Parents (2000)", "Starsky & Hutch (2004)", "Along Came Polly (2004)",
"Meet the Fockers (2004)", "Night at the Museum (2006)", "Night at the Museum: Battle of the Smithsonian (2009)",
"Little Fockers (2010)", "Night at the Museum: Secret of the Tomb (2014)", "Zoolander 2 (2016)", "Zoolander (2001)",
"DodgeBall: A True Underdog Story (2004)", "Tropic Thunder (2008)")
/** Ben Stiller films that may start at 20:00 (nothing adult). */
private val PunchlineStillerEarly = listOf(
"Meet the Parents (2000)", "Starsky & Hutch (2004)", "Along Came Polly (2004)", "Meet the Fockers (2004)",
"Night at the Museum (2006)", "Night at the Museum: Battle of the Smithsonian (2009)", "Little Fockers (2010)",
"Night at the Museum: Secret of the Tomb (2014)", "Zoolander 2 (2016)", "Zoolander (2001)", "DodgeBall: A True Underdog Story (2004)")
/** Star of the Month: Adam Sandler, Detour's and VHS's films of theirs included. */
private val PunchlineSandler = listOf(
"The Wedding Singer (1998)", "Little Nicky (2000)", "Mr. Deeds (2002)", "Anger Management (2003)", "50 First Dates (2004)",
"The Longest Yard (2005)", "Click (2006)", "I Now Pronounce You Chuck & Larry (2007)", "You Don't Mess with the Zohan (2008)",
"Grown Ups (2010)", "Just Go with It (2011)", "Grown Ups 2 (2013)", "Murder Mystery (2019)", "Hubie Halloween (2020)",
"Happy Gilmore 2 (2025)", "Billy Madison (1995)", "Happy Gilmore (1996)", "The Waterboy (1998)", "Big Daddy (1999)")
/** Adam Sandler films that may start at 20:00 (nothing adult). */
private val PunchlineSandlerEarly = listOf(
"The Wedding Singer (1998)", "Little Nicky (2000)", "Mr. Deeds (2002)", "Anger Management (2003)", "50 First Dates (2004)",
"The Longest Yard (2005)", "Click (2006)", "I Now Pronounce You Chuck & Larry (2007)", "You Don't Mess with the Zohan (2008)",
"Grown Ups (2010)", "Just Go with It (2011)", "Grown Ups 2 (2013)", "Murder Mystery (2019)", "Hubie Halloween (2020)",
"Happy Gilmore 2 (2025)", "Billy Madison (1995)", "Happy Gilmore (1996)", "The Waterboy (1998)", "Big Daddy (1999)")
/**
* December only, in Star Time: the Christmas comedies shared with Orbit Christmas. Christmas Vacation stays VHS's and Bad Santa
* Detour's, so neither plays here.
*/
private val PunchlineChristmas = listOf(
"Scrooged (1988)", "Elf (2003)")
internal val PunchlineFilms get() = (PunchlineMatinee + PunchlineAfternoon + PunchlineStarTime + PunchlineLate + PunchlineCult + PunchlineSpoofs +
PunchlineClassics + PunchlineBritish + PunchlineCarrey + PunchlineMurphy + PunchlineFerrell + PunchlineStiller + PunchlineSandler +
PunchlineChristmas).distinct()
/** Star of the Month: one star a month, round the year (December 2026 is Jim Carrey's). */
internal val PunchlineStarMonths: List<Triple<String, Set<Month>, Pair<List<String>, List<String>>>> get() = listOf(
Triple("Jim Carrey", setOf(Month.DECEMBER, Month.MAY, Month.OCTOBER), PunchlineCarreyEarly to PunchlineCarrey),
Triple("Eddie Murphy", setOf(Month.JANUARY, Month.JUNE, Month.NOVEMBER), PunchlineMurphyEarly to PunchlineMurphy),
Triple("Adam Sandler", setOf(Month.FEBRUARY, Month.JULY), PunchlineSandlerEarly to PunchlineSandler),
Triple("Will Ferrell", setOf(Month.MARCH, Month.AUGUST), PunchlineFerrellEarly to PunchlineFerrell),
Triple("Ben Stiller", setOf(Month.APRIL, Month.SEPTEMBER), PunchlineStillerEarly to PunchlineStiller))
internal val PunchlineDayParts: List<DayPart> get() = listOf(
// Spoof Friday: a Mel Brooks or Zucker-Abrahams-Zucker double bill, on time at 21:00.
DayPart(21, 1, PunchlineSpoofs, group = "Spoof Friday", days = setOf(DayOfWeek.FRIDAY), onTime = true, key = "punchline.spoof")) +
// Star of the Month, Saturdays at 20:00: the first film one that may start before the watershed, the second any of the star's.
PunchlineStarMonths.flatMap { (star, months, films) -> listOf(
// An hour's window starts one film; not "once", as Star Time's films earlier that evening would count as its turn.
DayPart(20, 21, films.first, group = "Star of the Month: $star", days = setOf(DayOfWeek.SATURDAY), onTime = true, key = "punchline.star", months = months),
DayPart(21, 0, films.second, group = "Star of the Month: $star", days = setOf(DayOfWeek.SATURDAY), key = "punchline.star", months = months)) } +
listOf(
// Sunday Classic: one comedy from before 1980, on time at 15:00.
DayPart(15, 16, PunchlineClassics, group = "Sunday Classic", days = setOf(DayOfWeek.SUNDAY), onTime = true, key = "punchline.classic"),
// Best of British: the first Thursday of the month, on time at 21:00.
DayPart(21, 1, PunchlineBritish, group = "Best of British", days = setOf(DayOfWeek.THURSDAY), onTime = true, key = "punchline.british", monthWeek = 1),
DayPart(6, 12, PunchlineMatinee, group = "Morning Matinee", key = "punchline.matinee"),
DayPart(12, 17, PunchlineAfternoon, group = "Afternoon Classics", key = "punchline.afternoon"),
DayPart(17, 21, PunchlineStarTime + PunchlineChristmas, group = "Star Time", key = "punchline.startime", months = setOf(Month.DECEMBER)),
DayPart(17, 21, PunchlineStarTime, group = "Star Time", key = "punchline.startime"),
DayPart(21, 1, PunchlineLate, group = "Late Laughs", key = "punchline.late"),
DayPart(1, 6, PunchlineCult, group = "Cult Corner", key = "punchline.cult"))
/** Each film by its year and IMDb ID, from the library's own copies, so a remake or another film of the name is never taken for it. */
internal val PunchlineImdb: Map<String, String> by lazy { mapOf(
"21 Jump Street (2012)" to "tt1232829",
"22 Jump Street (2014)" to "tt2294449",
"48 Hrs. (1982)" to "tt0083511",
"50 First Dates (2004)" to "tt0343660",
"A Fish Called Wanda (1988)" to "tt0095159",
"A Night at the Opera (1935)" to "tt0026778",
"A Night at the Roxbury (1998)" to "tt0120770",
"Ace Ventura: Pet Detective (1994)" to "tt0109040",
"Ace Ventura: When Nature Calls (1995)" to "tt0112281",
"Airplane II: The Sequel (1982)" to "tt0083530",
"Airplane! (1980)" to "tt0080339",
"Along Came Polly (2004)" to "tt0343135",
"Anchorman 2: The Legend Continues (2013)" to "tt1229340",
"Anchorman: The Legend of Ron Burgundy (2004)" to "tt0357413",
"Anger Management (2003)" to "tt0305224",
"Annie Hall (1977)" to "tt0075686",
"Another 48 Hrs. (1990)" to "tt0099044",
"Arsenic and Old Lace (1944)" to "tt0036613",
"Austin Powers in Goldmember (2002)" to "tt0295178",
"Austin Powers: International Man of Mystery (1997)" to "tt0118655",
"Austin Powers: The Spy Who Shagged Me (1999)" to "tt0145660",
"Back to School (1986)" to "tt0090685",
"Bad Boys (1995)" to "tt0112442",
"Bad Santa (2003)" to "tt0307987",
"Barbie (2023)" to "tt1517268",
"Bean (1997)" to "tt0118689",
"Beverly Hills Cop (1984)" to "tt0086960",
"Beverly Hills Cop II (1987)" to "tt0092644",
"Big (1988)" to "tt0094737",
"Big Daddy (1999)" to "tt0142342",
"Bill & Ted's Excellent Adventure (1989)" to "tt0096928",
"Billy Madison (1995)" to "tt0112508",
"Black Sheep (1996)" to "tt0115697",
"Blades of Glory (2007)" to "tt0445934",
"Blazing Saddles (1974)" to "tt0071230",
"Blockers (2018)" to "tt2531344",
"Booksmart (2019)" to "tt1489887",
"Boomerang (1992)" to "tt0103859",
"Bottoms (2023)" to "tt17527468",
"Bowfinger (1999)" to "tt0131325",
"Bridesmaids (2011)" to "tt1478338",
"Bringing Up Baby (1938)" to "tt0029947",
"Bruce Almighty (2003)" to "tt0315327",
"Bullet Train (2022)" to "tt12593682",
"Caddyshack (1980)" to "tt0080487",
"City Slickers (1991)" to "tt0101587",
"Click (2006)" to "tt0389860",
"Clueless (1995)" to "tt0112697",
"Cocaine Bear (2023)" to "tt14209916",
"Coming 2 America (2021)" to "tt6802400",
"Coming to America (1988)" to "tt0094898",
"Confess, Fletch (2022)" to "tt12718300",
"Crazy, Stupid, Love. (2011)" to "tt1570728",
"Daddy's Home (2015)" to "tt1528854",
"Daddy's Home 2 (2017)" to "tt5657846",
"Deadpool (2016)" to "tt1431045",
"Death at a Funeral (2007)" to "tt0795368",
"Dirty Rotten Scoundrels (1988)" to "tt0095031",
"DodgeBall: A True Underdog Story (2004)" to "tt0364725",
"Dolemite Is My Name (2019)" to "tt8526872",
"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964)" to "tt0057012",
"Dracula: Dead and Loving It (1995)" to "tt0112896",
"Duck Soup (1933)" to "tt0023969",
"Due Date (2010)" to "tt1231583",
"Dumb and Dumber (1994)" to "tt0109686",
"Dumb and Dumber To (2014)" to "tt2096672",
"Elf (2003)" to "tt0319343",
"Eurovision Song Contest: The Story of Fire Saga (2020)" to "tt8580274",
"Ferris Bueller's Day Off (1986)" to "tt0091042",
"Fletch (1985)" to "tt0089155",
"Forgetting Sarah Marshall (2008)" to "tt0800039",
"Four Lions (2010)" to "tt1341167",
"Four Weddings and a Funeral (1994)" to "tt0109831",
"Free Guy (2021)" to "tt6264654",
"Friday (1995)" to "tt0113118",
"Fun with Dick and Jane (2005)" to "tt0369441",
"Galaxy Quest (1999)" to "tt0177789",
"Game Night (2018)" to "tt2704998",
"Get Hard (2015)" to "tt2561572",
"Get Him to the Greek (2010)" to "tt1226229",
"Ghostbusters (1984)" to "tt0087332",
"Ghostbusters II (1989)" to "tt0097428",
"Good Boys (2019)" to "tt6977338",
"Groundhog Day (1993)" to "tt0107048",
"Grown Ups (2010)" to "tt1375670",
"Grown Ups 2 (2013)" to "tt2191701",
"Happy Gilmore (1996)" to "tt0116483",
"Happy Gilmore 2 (2025)" to "tt31868189",
"Harlem Nights (1989)" to "tt0097481",
"High Anxiety (1977)" to "tt0076141",
"His Girl Friday (1940)" to "tt0032599",
"History of the World: Part I (1981)" to "tt0082517",
"Hit Man (2024)" to "tt20215968",
"Horrible Bosses (2011)" to "tt1499658",
"Hot Fuzz (2007)" to "tt0425112",
"Hot Rod (2007)" to "tt0787475",
"Hot Shots! (1991)" to "tt0102059",
"Hot Shots! Part Deux (1993)" to "tt0107144",
"Hot Tub Time Machine (2010)" to "tt1231587",
"Hubie Halloween (2020)" to "tt10682266",
"Hunt for the Wilderpeople (2016)" to "tt4698684",
"I Love You, Man (2009)" to "tt1155056",
"I Now Pronounce You Chuck & Larry (2007)" to "tt0762107",
"In Bruges (2008)" to "tt0780536",
"Johnny English (2003)" to "tt0274166",
"Johnny English Reborn (2011)" to "tt1634122",
"Just Go with It (2011)" to "tt1564367",
"Kicking & Screaming (2005)" to "tt0384642",
"Kind Hearts and Coronets (1949)" to "tt0041546",
"Kindergarten Cop (1990)" to "tt0099938",
"Kingpin (1996)" to "tt0116778",
"Kingsman: The Secret Service (2014)" to "tt2802144",
"Knocked Up (2007)" to "tt0478311",
"Kung Pow! Enter the Fist (2002)" to "tt0240468",
"Liar Liar (1997)" to "tt0119528",
"Life (1999)" to "tt0123964",
"Life Stinks (1991)" to "tt0102303",
"Life of Brian (1979)" to "tt0079470",
"Little Fockers (2010)" to "tt0970866",
"Little Nicky (2000)" to "tt0185431",
"MacGruber (2010)" to "tt1470023",
"Me, Myself & Irene (2000)" to "tt0183505",
"Mean Girls (2004)" to "tt0377092",
"Meet the Fockers (2004)" to "tt0290002",
"Meet the Parents (2000)" to "tt0212338",
"Monty Python and the Holy Grail (1975)" to "tt0071853",
"Monty Python's The Meaning of Life (1983)" to "tt0085959",
"Mr. Bean's Holiday (2007)" to "tt0453451",
"Mr. Deeds (2002)" to "tt0280590",
"Mr. Popper's Penguins (2011)" to "tt1396218",
"Mrs. Doubtfire (1993)" to "tt0107614",
"Murder Mystery (2019)" to "tt1618434",
"Murder by Death (1976)" to "tt0074937",
"My Cousin Vinny (1992)" to "tt0104952",
"Nacho Libre (2006)" to "tt0457510",
"Naked Gun 33⅓: The Final Insult (1994)" to "tt0110622",
"Napoleon Dynamite (2004)" to "tt0374900",
"National Lampoon's Animal House (1978)" to "tt0077975",
"National Lampoon's Christmas Vacation (1989)" to "tt0097958",
"National Lampoon's European Vacation (1985)" to "tt0089670",
"National Lampoon's Vacation (1983)" to "tt0085995",
"Neighbors (2014)" to "tt2004420",
"Night at the Museum (2006)" to "tt0477347",
"Night at the Museum: Battle of the Smithsonian (2009)" to "tt1078912",
"Night at the Museum: Secret of the Tomb (2014)" to "tt2692250",
"No Hard Feelings (2023)" to "tt15671028",
"Not Another Teen Movie (2001)" to "tt0277371",
"Notting Hill (1999)" to "tt0125439",
"Nutty Professor II: The Klumps (2000)" to "tt0144528",
"Office Space (1999)" to "tt0151804",
"Old School (2003)" to "tt0302886",
"Palm Springs (2020)" to "tt9484998",
"Paul (2011)" to "tt1092026",
"Pineapple Express (2008)" to "tt0910936",
"Pitch Perfect (2012)" to "tt1981677",
"Planes, Trains & Automobiles (1987)" to "tt0093748",
"Popstar: Never Stop Never Stopping (2016)" to "tt3960412",
"Raising Arizona (1987)" to "tt0093822",
"Ricky Stanicky (2024)" to "tt1660648",
"Robin Hood: Men in Tights (1993)" to "tt0107977",
"Role Models (2008)" to "tt0430922",
"Rush Hour (1998)" to "tt0120812",
"Rush Hour 2 (2001)" to "tt0266915",
"Scary Movie (2000)" to "tt0175142",
"Scary Movie 2 (2001)" to "tt0257106",
"Scary Movie 3 (2003)" to "tt0306047",
"Scary Movie 4 (2006)" to "tt0362120",
"School of Rock (2003)" to "tt0332379",
"Scrooged (1988)" to "tt0096061",
"Semi-Pro (2008)" to "tt0839980",
"Shanghai Noon (2000)" to "tt0184894",
"Shaun of the Dead (2004)" to "tt0365748",
"Silent Movie (1976)" to "tt0075222",
"Silver Streak (1976)" to "tt0075223",
"Sleeper (1973)" to "tt0070707",
"Smokey and the Bandit (1977)" to "tt0076729",
"So I Married an Axe Murderer (1993)" to "tt0108174",
"Some Like It Hot (1959)" to "tt0053291",
"Spaceballs (1987)" to "tt0094012",
"Spies Like Us (1985)" to "tt0090056",
"Spy (2015)" to "tt3079380",
"Starsky & Hutch (2004)" to "tt0335438",
"Step Brothers (2008)" to "tt0838283",
"Stripes (1981)" to "tt0083131",
"Super Troopers (2001)" to "tt0247745",
"Super Troopers 2 (2018)" to "tt0859635",
"Superbad (2007)" to "tt0829482",
"Tag (2018)" to "tt2854926",
"Talladega Nights: The Ballad of Ricky Bobby (2006)" to "tt0415306",
"Team America: World Police (2004)" to "tt0372588",
"Ted (2012)" to "tt1637725",
"Tenacious D in The Pick of Destiny (2006)" to "tt0365830",
"The 40-Year-Old Virgin (2005)" to "tt0405422",
"The Apartment (1960)" to "tt0053604",
"The Big Lebowski (1998)" to "tt0118715",
"The Blues Brothers (1980)" to "tt0080455",
"The Cable Guy (1996)" to "tt0115798",
"The Campaign (2012)" to "tt1790886",
"The Fall Guy (2024)" to "tt1684562",
"The Full Monty (1997)" to "tt0119164",
"The Great Outdoors (1988)" to "tt0095253",
"The Hangover (2009)" to "tt1119646",
"The Hangover Part II (2011)" to "tt1411697",
"The Heat (2013)" to "tt2404463",
"The Inbetweeners 2 (2014)" to "tt3097204",
"The Inbetweeners Movie (2011)" to "tt1716772",
"The Italian Job (1969)" to "tt0064505",
"The Jerk (1979)" to "tt0079367",
"The Ladykillers (1955)" to "tt0048281",
"The Lavender Hill Mob (1951)" to "tt0044829",
"The Longest Yard (2005)" to "tt0398165",
"The Lost City (2022)" to "tt13320622",
"The Mask (1994)" to "tt0110475",
"The Naked Gun (2025)" to "tt3402138",
"The Naked Gun 2½: The Smell of Fear (1991)" to "tt0102510",
"The Naked Gun: From the Files of Police Squad! (1988)" to "tt0095705",
"The Nice Guys (2016)" to "tt3799694",
"The Nutty Professor (1996)" to "tt0117218",
"The Other Guys (2010)" to "tt1386588",
"The Philadelphia Story (1940)" to "tt0032904",
"The Pink Panther (1963)" to "tt0057413",
"The Pink Panther Strikes Again (1976)" to "tt0075066",
"The Producers (1967)" to "tt0063462",
"The Return of the Pink Panther (1975)" to "tt0072081",
"The Truman Show (1998)" to "tt0120382",
"The Waterboy (1998)" to "tt0120484",
"The Wedding Singer (1998)" to "tt0120888",
"The World's End (2013)" to "tt1213663",
"There's Something About Mary (1998)" to "tt0129387",
"This Is Spinal Tap (1984)" to "tt0088258",
"This Is the End (2013)" to "tt1245492",
"Throw Momma from the Train (1987)" to "tt0094142",
"To Be or Not to Be (1983)" to "tt0086450",
"Tommy Boy (1995)" to "tt0114694",
"Top Secret! (1984)" to "tt0088286",
"Tower Heist (2011)" to "tt0471042",
"Trading Places (1983)" to "tt0086465",
"Trainwreck (2015)" to "tt3152624",
"Tropic Thunder (2008)" to "tt0942385",
"Twins (1988)" to "tt0096320",
"Uncle Buck (1989)" to "tt0098554",
"Vacation (2015)" to "tt1524930",
"Vacation Friends (2021)" to "tt3626476",
"Walk Hard: The Dewey Cox Story (2007)" to "tt0841046",
"Wayne's World (1992)" to "tt0105793",
"Wayne's World 2 (1993)" to "tt0108525",
"We're the Millers (2013)" to "tt1723121",
"Wedding Crashers (2005)" to "tt0396269",
"Weekend at Bernie's (1989)" to "tt0098627",
"What About Bob? (1991)" to "tt0103241",
"What We Do in the Shadows (2014)" to "tt3416742",
"What's Up, Doc? (1972)" to "tt0069495",
"Withnail & I (1987)" to "tt0094336",
"Yes Man (2008)" to "tt1068680",
"You Don't Mess with the Zohan (2008)" to "tt0960144",
"Young Frankenstein (1974)" to "tt0072431",
"Zombieland (2009)" to "tt1156398",
"Zoolander (2001)" to "tt0196229",
"Zoolander 2 (2016)" to "tt1608290",
"¡Three Amigos! (1986)" to "tt0092086") }
@@ -39,7 +39,8 @@ private val DayNames = mapOf(java.time.DayOfWeek.MONDAY to "Mon", java.time.DayO
/** A channel event's rule in words. */
internal fun recurrenceOf(part: DayPart): String {
val days = part.days.sorted().joinToString(", ") { DayNames.getValue(it) }
val week = part.monthWeek?.let { w -> " (week $w of the month)" }.orEmpty()
val week = part.monthWeek?.let { w -> if (w == LAST_WEEK) " (last week of the month)" else " (week $w of the month)" }.orEmpty() +
if (part.months.isEmpty()) "" else " in " + part.months.sorted().joinToString(", ") { it.name.take(3).lowercase().replaceFirstChar(Char::uppercase) }
val rules = listOfNotNull("premiere nights".takeIf { part.premiereNights == true }, "other nights".takeIf { part.premiereNights == false },
"premieres".takeIf { part.premiere }, "on time".takeIf { part.onTime }, "one a night".takeIf { part.once }, "${part.run} in a row".takeIf { part.run > 1 },
part.from?.let { "from $it" }).joinToString(", ")
@@ -66,7 +67,8 @@ internal object SpecialEvents {
parts.map { part ->
val label = part.key.ifEmpty { part.group }.ifEmpty { part.titles.firstOrNull().orEmpty() }
val nights = when (part.premiereNights) { true -> ":premiere"; false -> ":other"; null -> "" }
SpecialEvent("$number:$label:${part.days.sorted().joinToString("") { DayNames.getValue(it) }}:${part.fromHour}$nights", SpecialKind.ChannelEvent, number,
val months = if (part.months.isEmpty()) "" else ":" + part.months.sorted().joinToString(",") { it.name.take(3).lowercase() }
SpecialEvent("$number:$label:${part.days.sorted().joinToString("") { DayNames.getValue(it) }}:${part.fromHour}$nights$months", SpecialKind.ChannelEvent, number,
part.group.ifEmpty { label }, part.titles, recurrenceOf(part), part.key, part = part)
}
}
@@ -0,0 +1,291 @@
package tv.orbit.classic
import java.time.DayOfWeek
/**
* SYNDICATE (Paul, 25 November 2026): organised crime on television and in the cinema, from Little Caesar (1931) to MobLand
* (2025). Crime series run through the day and night, about 70% of the week; the gangster films hold three slots a day and
* the evening events: The Family on Sundays, Heist Friday, The Firm on Thursdays, and Triads and Yakuza with ATLAS on the
* last Saturday of the month.
*
* Every series was read episode by episode (audit-20261125-newfilm): the home series all run unbroken. The Sopranos, Boardwalk
* Empire and Narcos stay at home on Signature, and The Wire on Evidence; they're guests here, at the lowest weight. Peaky
* Blinders is left out until its S4 E3 is looked at (Paul, 25 November 2026), and Power's two sequels, Ghost and Force,
* wait until Power itself has run its course here, so the story isn't told out of order. Gomorrah stays on ATLAS.
*
* Films rest five days, here and across the network ([NETWORK_FILM_REST_MS]). The crossover films play in their own language
* with full English subtitles, under ATLAS's rule ([AtlasPlayback]); every other title plays as any channel does. Every
* series is rated TV-MA, so SYNDICATE is an adult channel all day, as Signature is in its evenings.
*/
internal const val SYNDICATE_NUMBER = 114
/** The Corner, 08:00 to 17:00: the home series, a few episodes of each in turn. */
private val SyndicateCorner = listOf("Power", "Snowfall", "BMF", "Godfather of Harlem", "Tulsa King", "Power Book III: Raising Kanan", "Narcos: Mexico", "Griselda", "Mob City")
/** Made Men, 19:00 to 23:00: the big series, with Signature's and Evidence's as guests. */
private val SyndicateMadeMen = listOf("Top Boy", "Gangs of London", "MobLand", "The Gentlemen", "A Thousand Blows", "The Sopranos", "Boardwalk Empire", "The Wire", "Narcos")
/** Underworld, 01:00 to 06:00: the night series. */
private val SyndicateUnderworld = listOf("Narcos: Mexico", "Lilyhammer", "Kin", "Griselda", "Mob City", "Tulsa King", "The Sopranos", "Boardwalk Empire", "The Wire")
/** Signature's and Evidence's series, carried here as guests: they stay at home there. */
internal val SyndicateGuests = listOf("The Sopranos", "Boardwalk Empire", "Narcos", "The Wire")
/** Public Enemies, 06:00 to 08:00: gangster classics from the 1930s to the 70s. */
private val SyndicatePublicEnemies = listOf(
"Little Caesar (1931)", "The Public Enemy (1931)", "Scarface (1932)", "Angels with Dirty Faces (1938)", "The Roaring Twenties (1939)",
"High Sierra (1941)", "The Maltese Falcon (1941)", "White Heat (1949)", "Bonnie and Clyde (1967)", "Point Blank (1967)",
"Bullitt (1968)", "Dog Day Afternoon (1975)", "The French Connection (1971)", "Serpico (1973)", "The Friends of Eddie Coyle (1973)",
"Charley Varrick (1973)", "Dillinger (1973)", "Bloody Mama (1970)")
/** Capers: Heist Friday at 19:00, and The Job. */
private val SyndicateCapers = listOf(
"The Sting (1973)", "The Thomas Crown Affair (1968)", "Logan Lucky (2017)", "The Italian Job (1969)", "The Italian Job (2003)",
"Out of Sight (1998)", "Ocean's Eleven (2001)", "Ocean's Twelve (2004)", "Ocean's Thirteen (2007)", "The Instigators (2024)")
/** Heists: Heist Friday at 21:00, and The Job. */
private val SyndicateHeists = listOf(
"Heat (1995)", "Reservoir Dogs (1992)", "The Usual Suspects (1995)", "Thief (1981)", "Ronin (1998)", "Inside Man (2006)",
"The Town (2010)", "Widows (2018)", "Den of Thieves (2018)", "Den of Thieves 2: Pantera (2025)", "Baby Driver (2017)",
"Wrath of Man (2021)", "Triple Frontier (2019)", "Hell or High Water (2016)", "The Score (2001)", "The Asphalt Jungle (1950)",
"Rififi (1955)", "The Killing (1956)")
/** The Family, Sundays at 20:00: the great mafia films, in this order, one a week. Only here. */
internal val SyndicateFamily = listOf(
"The Godfather (1972)", "The Godfather Part II (1974)", "The Godfather Part III (1990)", "Once Upon a Time in America (1984)",
"Goodfellas (1990)", "Casino (1995)", "The Irishman (2019)", "Donnie Brasco (1997)", "The Untouchables (1987)",
"Miller's Crossing (1990)", "Road to Perdition (2002)", "Black Mass (2015)", "The Many Saints of Newark (2021)", "Bugsy (1991)",
"A Bronx Tale (1993)")
/** The Firm, Thursdays at 22:00: British gangsters, BritX's shared here. */
private val SyndicateBritish = listOf(
"The Long Good Friday (1980)", "Legend (2015)", "Snatch (2000)", "Lock, Stock and Two Smoking Barrels (1998)", "Layer Cake (2004)",
"RocknRolla (2008)", "Sexy Beast (2000)", "Get Carter (1971)", "Gangster No. 1 (2000)", "The Krays (1990)", "Bronson (2008)",
"The Bank Job (2008)", "Rise of the Footsoldier (2007)", "Mona Lisa (1986)", "Croupier (1998)")
/** Crime Prime, 23:00 to 01:00: modern crime, the mob and British gangsters. */
private val SyndicateCrimePrime = listOf(
"Scarface (1983)", "To Live and Die in L.A. (1985)", "King of New York (1990)", "New Jack City (1991)", "Carlito's Way (1993)",
"True Romance (1993)", "Pulp Fiction (1994)", "Léon: The Professional (1994)", "Get Shorty (1995)", "Fargo (1996)",
"Jackie Brown (1997)", "L.A. Confidential (1997)", "Payback (1999)", "Blow (2001)", "Training Day (2001)", "Narc (2002)",
"Gangs of New York (2002)", "Collateral (2004)", "The Departed (2006)", "American Gangster (2007)", "Eastern Promises (2007)",
"We Own the Night (2007)", "Gone Baby Gone (2007)", "No Country for Old Men (2007)", "Public Enemies (2009)", "Drive (2011)",
"Killing Them Softly (2012)", "Lawless (2012)", "Gangster Squad (2013)", "The Place Beyond the Pines (2012)", "American Hustle (2013)",
"The Drop (2014)", "A Most Violent Year (2014)", "Sicario (2015)", "Uncut Gems (2019)", "The Batman (2022)",
"Killers of the Flower Moon (2023)", "Bad Lieutenant (1992)", "Menace II Society (1993)", "Boyz n the Hood (1991)",
"No Sudden Move (2021)", "The Outfit (2022)", "Caught Stealing (2025)", "The Bikeriders (2024)", "Fast Charlie (2023)", "Wolfs (2024)",
"The Killer (2023)", "The Card Counter (2021)", "Hustlers (2019)", "Dead Man's Wire (2026)", "Lucky Number Slevin (2006)",
"Mystic River (2003)", "Cop Land (1997)", "Rounders (1998)", "Smokin' Aces (2006)", "Things to Do in Denver When You're Dead (1995)",
"Romeo Is Bleeding (1993)", "Mean Streets (1973)", "Prizzi's Honor (1985)", "State of Grace (1990)", "Analyze This (1999)",
"Mobsters (1991)", "Billy Bathgate (1991)", "Kill the Irishman (2011)", "Gotti (2018)", "Capone (2020)", "The Alto Knights (2025)",
"The Valachi Papers (1972)", "The Long Good Friday (1980)", "Legend (2015)", "Snatch (2000)",
"Lock, Stock and Two Smoking Barrels (1998)", "Layer Cake (2004)", "RocknRolla (2008)", "Sexy Beast (2000)", "Get Carter (1971)",
"Gangster No. 1 (2000)", "The Krays (1990)", "Bronson (2008)", "The Bank Job (2008)", "Rise of the Footsoldier (2007)",
"Mona Lisa (1986)", "Croupier (1998)")
/** Triads and Yakuza with ATLAS, the last Saturday of the month: Hong Kong and Korean gangster cinema, in its own language with English subtitles. */
internal val SyndicateCrossover = listOf(
"A Better Tomorrow II (1987)", "The Killer (1989)", "Bullet in the Head (1990)", "Hard Boiled (1992)", "Infernal Affairs (2002)",
"Election (2005)", "The Yellow Sea (2010)", "A Bittersweet Life (2005)", "The Man from Nowhere (2010)",
"The Gangster, the Cop, the Devil (2019)", "Kill Boksoon (2023)")
internal val SyndicateShows get() = (SyndicateCorner + SyndicateMadeMen + SyndicateUnderworld).distinct()
internal val SyndicateFilms get() = (SyndicatePublicEnemies + SyndicateCapers + SyndicateHeists + SyndicateFamily + SyndicateBritish + SyndicateCrimePrime + SyndicateCrossover).distinct()
internal val SyndicateDayParts get() = listOf(
DayPart(20, 0, SyndicateFamily, group = "The Family", days = setOf(DayOfWeek.SUNDAY), onTime = true, once = true, key = "syndicate.family"),
// Heist Friday: a caper on time at 19:00, then the heist on time at 21:00. Each window is an hour, so it starts one film; not
// "once", as The Job's films earlier that evening would otherwise count as the night's turn.
DayPart(21, 22, SyndicateHeists, group = "Heist Friday", days = setOf(DayOfWeek.FRIDAY), onTime = true, key = "syndicate.heist"),
DayPart(19, 20, SyndicateCapers, group = "Heist Friday", days = setOf(DayOfWeek.FRIDAY), onTime = true, key = "syndicate.heist"),
DayPart(22, 1, SyndicateBritish, group = "The Firm", days = setOf(DayOfWeek.THURSDAY), onTime = true, once = true, key = "syndicate.firm"),
DayPart(23, 3, SyndicateCrossover, group = "Triads and Yakuza", days = setOf(DayOfWeek.SATURDAY), onTime = true, key = "syndicate.triads", monthWeek = LAST_WEEK),
DayPart(6, 8, SyndicatePublicEnemies, group = "Public Enemies", key = "syndicate.publicenemies"),
DayPart(8, 17, SyndicateCorner, group = "The Corner", key = "syndicate.corner"),
DayPart(17, 19, SyndicateCapers + SyndicateHeists, group = "The Job", key = "syndicate.job"),
DayPart(19, 23, SyndicateMadeMen, group = "Made Men", key = "syndicate.mademen"),
DayPart(23, 1, SyndicateCrimePrime, group = "Crime Prime", key = "syndicate.crimeprime"),
DayPart(1, 6, SyndicateUnderworld, group = "Underworld", key = "syndicate.underworld"))
/** Home series are core; the two six-part series supporting, so they don't come round every day; the guests least. */
internal val SyndicateTiers: Map<String, Double> get() =
SyndicateShows.associate { seriesKey(it) to TIER_CORE } +
listOf("Griselda", "Mob City").associate { seriesKey(it) to TIER_SUPPORTING } +
SyndicateGuests.associate { seriesKey(it) to TIER_SURPRISE }
/** Each series by its IMDb ID, looked up only when a name search's top ten misses it ([atlasPinnedCandidates]). */
internal val SyndicatePinnedSeries: Map<String, String> = mapOf(
"The Sopranos" to "tt0141842", "The Wire" to "tt0306414", "Top Boy" to "tt1830379", "Tulsa King" to "tt16358384",
"Godfather of Harlem" to "tt8080122", "Boardwalk Empire" to "tt0979432", "Snowfall" to "tt6439752", "Power" to "tt3281796",
"Power Book III: Raising Kanan" to "tt11761176", "Gangs of London" to "tt7661390", "MobLand" to "tt31510819",
"The Gentlemen" to "tt13210838", "Narcos" to "tt2707408", "Narcos: Mexico" to "tt8714904", "Mob City" to "tt2176609",
"BMF" to "tt3850598", "Griselda" to "tt15837600", "Kin" to "tt13444408", "A Thousand Blows" to "tt21874900", "Lilyhammer" to "tt1958961")
/** The crossover films' own languages, for ATLAS's rule on this channel. */
internal val SyndicateCrossoverLanguages: Map<String, String> get() = mapOf(
"A Better Tomorrow II" to "zh",
"The Killer" to "zh",
"Bullet in the Head" to "zh",
"Hard Boiled" to "zh",
"Infernal Affairs" to "zh",
"Election" to "zh",
"The Yellow Sea" to "ko",
"A Bittersweet Life" to "ko",
"The Man from Nowhere" to "ko",
"The Gangster, the Cop, the Devil" to "ko",
"Kill Boksoon" to "ko")
/** Each film by its year and IMDb ID, from the library's own copies, so a remake or another film of the name is never taken for it. */
internal val SyndicateImdb: Map<String, String> by lazy { mapOf(
"A Better Tomorrow II (1987)" to "tt0094357",
"A Bittersweet Life (2005)" to "tt0456912",
"A Bronx Tale (1993)" to "tt0106489",
"A Most Violent Year (2014)" to "tt2937898",
"American Gangster (2007)" to "tt0765429",
"American Hustle (2013)" to "tt1800241",
"Analyze This (1999)" to "tt0122933",
"Angels with Dirty Faces (1938)" to "tt0029870",
"Baby Driver (2017)" to "tt3890160",
"Bad Lieutenant (1992)" to "tt0103759",
"Billy Bathgate (1991)" to "tt0101453",
"Black Mass (2015)" to "tt1355683",
"Bloody Mama (1970)" to "tt0065481",
"Blow (2001)" to "tt0221027",
"Bonnie and Clyde (1967)" to "tt0061418",
"Boyz n the Hood (1991)" to "tt0101507",
"Bronson (2008)" to "tt1172570",
"Bugsy (1991)" to "tt0101516",
"Bullet in the Head (1990)" to "tt0099426",
"Bullitt (1968)" to "tt0062765",
"Capone (2020)" to "tt6199572",
"Carlito's Way (1993)" to "tt0106519",
"Casino (1995)" to "tt0112641",
"Caught Stealing (2025)" to "tt1493274",
"Charley Varrick (1973)" to "tt0069865",
"Collateral (2004)" to "tt0369339",
"Cop Land (1997)" to "tt0118887",
"Croupier (1998)" to "tt0159382",
"Dead Man's Wire (2026)" to "tt15181326",
"Den of Thieves (2018)" to "tt1259528",
"Den of Thieves 2: Pantera (2025)" to "tt8008948",
"Dillinger (1973)" to "tt0069976",
"Dog Day Afternoon (1975)" to "tt0072890",
"Donnie Brasco (1997)" to "tt0119008",
"Drive (2011)" to "tt0780504",
"Eastern Promises (2007)" to "tt0765443",
"Election (2005)" to "tt0434008",
"Fargo (1996)" to "tt0116282",
"Fast Charlie (2023)" to "tt6722400",
"Gangs of New York (2002)" to "tt0217505",
"Gangster No. 1 (2000)" to "tt0210065",
"Gangster Squad (2013)" to "tt1321870",
"Get Carter (1971)" to "tt0067128",
"Get Shorty (1995)" to "tt0113161",
"Gone Baby Gone (2007)" to "tt0452623",
"Goodfellas (1990)" to "tt0099685",
"Gotti (2018)" to "tt1801552",
"Hard Boiled (1992)" to "tt0104684",
"Heat (1995)" to "tt0113277",
"Hell or High Water (2016)" to "tt2582782",
"High Sierra (1941)" to "tt0033717",
"Hustlers (2019)" to "tt5503686",
"Infernal Affairs (2002)" to "tt0338564",
"Inside Man (2006)" to "tt0454848",
"Jackie Brown (1997)" to "tt0119396",
"Kill Boksoon (2023)" to "tt16900880",
"Kill the Irishman (2011)" to "tt1416801",
"Killers of the Flower Moon (2023)" to "tt5537002",
"Killing Them Softly (2012)" to "tt1764234",
"King of New York (1990)" to "tt0099939",
"L.A. Confidential (1997)" to "tt0119488",
"Lawless (2012)" to "tt1212450",
"Layer Cake (2004)" to "tt0375912",
"Legend (2015)" to "tt3569230",
"Little Caesar (1931)" to "tt0021079",
"Lock, Stock and Two Smoking Barrels (1998)" to "tt0120735",
"Logan Lucky (2017)" to "tt5439796",
"Lucky Number Slevin (2006)" to "tt0425210",
"Léon: The Professional (1994)" to "tt0110413",
"Mean Streets (1973)" to "tt0070379",
"Menace II Society (1993)" to "tt0107554",
"Miller's Crossing (1990)" to "tt0100150",
"Mobsters (1991)" to "tt0102460",
"Mona Lisa (1986)" to "tt0091538",
"Mystic River (2003)" to "tt0327056",
"Narc (2002)" to "tt0272207",
"New Jack City (1991)" to "tt0102526",
"No Country for Old Men (2007)" to "tt0477348",
"No Sudden Move (2021)" to "tt11525644",
"Ocean's Eleven (2001)" to "tt0240772",
"Ocean's Thirteen (2007)" to "tt0496806",
"Ocean's Twelve (2004)" to "tt0349903",
"Once Upon a Time in America (1984)" to "tt0087843",
"Out of Sight (1998)" to "tt0120780",
"Payback (1999)" to "tt0120784",
"Point Blank (1967)" to "tt0062138",
"Prizzi's Honor (1985)" to "tt0089841",
"Public Enemies (2009)" to "tt1152836",
"Pulp Fiction (1994)" to "tt0110912",
"Reservoir Dogs (1992)" to "tt0105236",
"Rififi (1955)" to "tt0048021",
"Rise of the Footsoldier (2007)" to "tt0901507",
"Road to Perdition (2002)" to "tt0257044",
"RocknRolla (2008)" to "tt1032755",
"Romeo Is Bleeding (1993)" to "tt0107983",
"Ronin (1998)" to "tt0122690",
"Rounders (1998)" to "tt0128442",
"Scarface (1932)" to "tt0023427",
"Scarface (1983)" to "tt0086250",
"Serpico (1973)" to "tt0070666",
"Sexy Beast (2000)" to "tt0203119",
"Sicario (2015)" to "tt3397884",
"Smokin' Aces (2006)" to "tt0475394",
"Snatch (2000)" to "tt0208092",
"State of Grace (1990)" to "tt0100685",
"The Alto Knights (2025)" to "tt21815562",
"The Asphalt Jungle (1950)" to "tt0042208",
"The Bank Job (2008)" to "tt0200465",
"The Batman (2022)" to "tt1877830",
"The Bikeriders (2024)" to "tt21454134",
"The Card Counter (2021)" to "tt11196036",
"The Departed (2006)" to "tt0407887",
"The Drop (2014)" to "tt1600196",
"The French Connection (1971)" to "tt0067116",
"The Friends of Eddie Coyle (1973)" to "tt0070077",
"The Gangster, the Cop, the Devil (2019)" to "tt10208198",
"The Godfather (1972)" to "tt0068646",
"The Godfather Part II (1974)" to "tt0071562",
"The Godfather Part III (1990)" to "tt0099674",
"The Instigators (2024)" to "tt24169886",
"The Irishman (2019)" to "tt1302006",
"The Italian Job (1969)" to "tt0064505",
"The Italian Job (2003)" to "tt0317740",
"The Killer (1989)" to "tt0097202",
"The Killer (2023)" to "tt1136617",
"The Killing (1956)" to "tt0049406",
"The Krays (1990)" to "tt0099951",
"The Long Good Friday (1980)" to "tt0081070",
"The Maltese Falcon (1941)" to "tt0033870",
"The Man from Nowhere (2010)" to "tt1527788",
"The Many Saints of Newark (2021)" to "tt8110232",
"The Outfit (2022)" to "tt14114802",
"The Place Beyond the Pines (2012)" to "tt1817273",
"The Public Enemy (1931)" to "tt0022286",
"The Roaring Twenties (1939)" to "tt0031867",
"The Score (2001)" to "tt0227445",
"The Sting (1973)" to "tt0070735",
"The Thomas Crown Affair (1968)" to "tt0063688",
"The Town (2010)" to "tt0840361",
"The Untouchables (1987)" to "tt0094226",
"The Usual Suspects (1995)" to "tt0114814",
"The Valachi Papers (1972)" to "tt0068341",
"The Yellow Sea (2010)" to "tt1230385",
"Thief (1981)" to "tt0083190",
"Things to Do in Denver When You're Dead (1995)" to "tt0114660",
"To Live and Die in L.A. (1985)" to "tt0090180",
"Training Day (2001)" to "tt0139654",
"Triple Frontier (2019)" to "tt1488606",
"True Romance (1993)" to "tt0108399",
"Uncut Gems (2019)" to "tt5727208",
"We Own the Night (2007)" to "tt0498399",
"White Heat (1949)" to "tt0042041",
"Widows (2018)" to "tt4218572",
"Wolfs (2024)" to "tt14257582",
"Wrath of Man (2021)" to "tt11083552") }
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -167,8 +167,9 @@ 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, OUTLAW, Orbit Stories, Silver Screen and Frontline joined on 23 November 2026.
assertEquals(42, SmartChannels.size)
// Americana, OUTLAW, Orbit Stories, Silver Screen and Frontline joined on 23 November 2026; ATLAS on 24 November;
// SYNDICATE and PUNCHLINE on 25 November.
assertEquals(44, SmartChannels.size)
}
@Test fun ringXKeepsItsWeeknightsAndFallsBackToTheVault() {
@@ -199,7 +200,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, STORIES_NUMBER, SILVER_SCREEN_NUMBER, FRONTLINE_NUMBER, ATLAS_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, ATLAS_NUMBER, SYNDICATE_NUMBER, PUNCHLINE_NUMBER), SmartChannels.map { it.number }.toSet())
}
@Test fun kitchenHomeAndPlayAreBrandedInTheirBlocks() {
@@ -270,8 +271,10 @@ class ChannelPresetsTest {
assertFalse(inSeason(CHRISTMAS_NUMBER, at(1, 1), zone)); assertFalse(inSeason(CHRISTMAS_NUMBER, at(10, 31), zone))
assertTrue(inSeason(109, at(1, 1), zone))
// No show another channel carries, so each keeps its identity: only Band of Brothers, which Odyssey keeps listed but in no block.
// ATLAS's guests, Shōgun and Dark, are Paul's own exception (24 November 2026): Signature stays their home.
val others = SmartChannels.filter { it.number !in setOf(109, 110, CHRISTMAS_NUMBER) }.flatMap { it.searches }.toSet() - "Band of Brothers" - "Shōgun" - "Dark"
// ATLAS's guests, Shōgun and Dark, are Paul's own exception (24 November 2026): Signature stays their home. So are
// SYNDICATE's from Signature (25 November 2026).
val others = SmartChannels.filter { it.number !in setOf(109, 110, CHRISTMAS_NUMBER) }.flatMap { it.searches }.toSet() - "Band of Brothers" - "Shōgun" - "Dark" -
SyndicateGuests.toSet()
assertTrue((SignatureShows + UnscriptedShows).none { it in others })
}
}
@@ -0,0 +1,80 @@
package tv.orbit.classic
import org.json.JSONObject
import org.junit.Assume.assumeTrue
import org.junit.Test
import java.io.File
import java.time.Instant
import java.time.ZoneId
/**
* PUNCHLINE and SYNDICATE's read-only simulation (Paul, 25 November 2026): each planned from a fixed now, from pools built from
* the library audit (audit-20261125-newfilm, the copies and episodes the server reported), against one pulled TV snapshot's
* plans for every other channel, with the same clash and network-rest rules the box uses. Run only with SIM_SNAP and SIM_OUT;
* writes each plan as rows, and the checks it can make itself, for the impact report.
*/
class NewChannelsSimulationTest {
@Test fun simulate() {
val dir = System.getenv("SIM_SNAP")?.let(::File)
assumeTrue(dir != null && dir.isDirectory)
val out = File(System.getenv("SIM_OUT")!!).also { it.mkdirs() }
val zone = ZoneId.of("Europe/London")
val now = java.time.LocalDateTime.of(2026, 11, 30, 6, 0).atZone(zone).toInstant().toEpochMilli()
val user = dir!!.listFiles()!!.first { it.name.startsWith("schedule-") }.let { JSONObject(it.readText()).getString("user") }
val store = ScheduleStore(dir)
val others = (SmartChannels.map { it.number } - setOf(PUNCHLINE_NUMBER, SYNDICATE_NUMBER) + DRIVE_IN_NUMBER).mapNotNull { n -> store.loadPlan(user, n)?.let { n to it } }.toMap()
val fixture = JSONObject(javaClass.classLoader!!.getResourceAsStream("new-channels-pools.json")!!.bufferedReader().readText())
fun film(o: JSONObject) = PoolSeries(o.getString("id"), o.getString("title"),
listOf(PoolEpisode(o.getString("id"), "src-" + o.getString("id"), EpisodeMark(1, 1), o.getString("title"), o.getLong("mins") * 60_000L)),
ref = "imdb." + o.getString("imdb"), year = o.optInt("year").takeIf { it > 0 })
fun films(key: String, listed: List<String>): List<PoolSeries> {
val arr = fixture.getJSONArray(key)
val byEntry = (0 until arr.length()).map { arr.getJSONObject(it) }.associateBy { it.getString("entry") }
return listed.mapNotNull { byEntry[it]?.let(::film) }.distinctBy { it.id }
}
val report = StringBuilder()
fun plan(p: ChannelProgramming, pool: List<PoolSeries>) {
val otherPlans = others.filterKeys { it != p.number }.values
val clash = clashesWithAirings(otherPlans.flatMap { airingsOf(it) })
val resting = restingElsewhere(otherPlans.flatMap { filmAiringsOf(it) })
val network: NetworkRest = if (p.filmRestMs == null) NoNetworkRest else resting
val avoid: ProgrammeClash = if (p.number == SYNDICATE_NUMBER) { show, s, e -> clash(show, s, e) || (show.isFilm && resting(show, s)) } else clash
// Topped up once a day for five weeks, as the box does, so the monthly events and December's films come round.
val all = LinkedHashMap<String, ScheduleEntry>()
var plan: ChannelPlan? = null
var aired = ScheduleCursor()
for (day in 0 until 35) {
// What has gone out by now, as the box keeps it (its progress file), so rests and episode places carry on.
plan?.let { aired = airedCursor(aired, it.entries, now + day * 86_400_000L) }
plan = topUpPlan(plan, aired, pool, now + day * 86_400_000L, p.filmRestMs, p.finishTogether, p.dayParts, zone, avoid = avoid, shuffle = p.shuffleEpisodes,
mixed = p::mixes, weightOf = p.tierWeights?.let { p::weightOf }, adaptiveRest = p.adaptiveFilmRest, fileRestMs = p.fileRestMs, stories = p.storyGrouping,
shorts = p.shorts, marathon = p.marathon, network = network)!!
plan.entries.forEach { all.putIfAbsent("${it.startMs}", it) }
}
plan = ChannelPlan(all.values.sortedBy { it.startMs }, plan!!.tail)
val rows = StringBuilder("start\tend\tminutes\titem\ttitle\tseries\tmark\tpresentation\tgroup\tclash\trestingElsewhere\twhy\n")
plan.entries.forEach { e ->
val show = pool.first { it.id == e.seriesId }
fun t(ms: Long) = Instant.ofEpochMilli(ms).atZone(zone).toLocalDateTime().toString()
rows.append("${t(e.startMs)}\t${t(e.endMs)}\t${(e.endMs - e.startMs) / 60_000}\t${e.media.item.id}\t${e.media.item.title}\t${show.title}\t${e.mark.season}.${e.mark.episode}\t" +
"${presentationOf(e, p.dayParts, zone)}\t${e.group}\t${clash(show, e.startMs, e.endMs)}\t${show.isFilm && resting(show, e.startMs)}\t${e.why}\n")
}
File(out, "plan-${p.number}.tsv").writeText(rows.toString())
report.append("${p.number} ${p.name}: ${plan.entries.size} programmes from ${Instant.ofEpochMilli(plan.entries.first().startMs).atZone(zone)} to ${Instant.ofEpochMilli(plan.entries.last().endMs).atZone(zone)}\n")
}
val punchline = SmartChannels.first { it.number == PUNCHLINE_NUMBER }
plan(punchline, films("punchline", punchline.searches))
val syndicate = SmartChannels.first { it.number == SYNDICATE_NUMBER }
val seriesArr = fixture.getJSONArray("syndicate_series")
val series = (0 until seriesArr.length()).map { seriesArr.getJSONObject(it) }.filter { it.getString("title") in syndicate.searches }
.sortedBy { syndicate.searches.indexOf(it.getString("title")) }.map { o ->
val eps = o.getJSONArray("episodes")
PoolSeries(o.getString("id"), o.getString("title"), (0 until eps.length()).map { eps.getJSONObject(it) }.map { e ->
val s = e.getInt("s"); val n = e.getInt("e")
PoolEpisode("${o.getString("id")}-s$s-e$n", "src-${o.getString("id")}-$s-$n", EpisodeMark(s, n), "${o.getString("title")} / S$s E$n", e.getLong("mins") * 60_000L)
}, year = o.optInt("year"))
}
plan(syndicate, series + films("syndicate_films", syndicate.channelFilms))
File(out, "summary.txt").writeText(report.toString())
}
}
@@ -86,7 +86,8 @@ class PpvSundayTest {
@Test fun onlyRingXAndAtlasCarryFilmsInAnEvent() {
// ATLAS (24 November 2026): its film events, from its own list.
assertEquals(listOf(ATLAS_NUMBER, 401), SmartChannels.filter { it.channelFilms.isNotEmpty() }.map { it.number }.sorted())
// SYNDICATE (25 November 2026): films in its everyday blocks and events, from its own list.
assertEquals(listOf(ATLAS_NUMBER, SYNDICATE_NUMBER, 401), SmartChannels.filter { it.channelFilms.isNotEmpty() }.map { it.number }.sorted())
}
@Test fun ringXReadsItsEventsAgainWhenTheListChanges() {
@@ -22,8 +22,9 @@ class PresentationTest {
// Riot 3, After Dark 3, Horror, Gold, Three, Vortex 4 (Movie Night, Prime, Afterburn and its premiere), Orbit 2 2, Ring X 7 (six nights and PPV), Terra,
// and Saturday Mornings on Heroes, Orbit X and Rewind.
// OUTLAW's After Sundown joined on 23 November 2026; Frontline's Cost of War, Hitchcock Nights and Stories' After Hours on the 24th.
// ATLAS's five dayparts and four film events on the 25th.
assertEquals(39, keys.size)
// ATLAS's five dayparts and four film events on the 25th; then PUNCHLINE's five blocks and four events, and SYNDICATE's six
// blocks and four events.
assertEquals(39 + 9 + 10, keys.size)
assertEquals(emptySet<String>(), keys - BlockIdents.keys)
assertTrue(keys.all { PRESENTATION_KEY.matches(it) })
}
@@ -0,0 +1,94 @@
package tv.orbit.classic
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
import java.time.LocalDateTime
import java.time.Month
import java.time.ZoneId
/** PUNCHLINE (314), approved by Paul on 25 November 2026: its films, its ownership rules, its ratings by block and its events. */
class PunchlineChannelTest {
private val zone = ZoneId.of("Europe/London")
private val channel = SmartChannels.first { it.number == PUNCHLINE_NUMBER }
private fun at(y: Int, m: Int, d: Int, h: Int, min: Int = 0) = LocalDateTime.of(y, m, d, h, min).atZone(zone)
private fun parts(time: java.time.ZonedDateTime) = channel.dayParts.filter { it.covers(time) }
private val ratings: Map<String, String> = javaClass.classLoader!!.getResourceAsStream("punchline-ratings.tsv")!!.bufferedReader().readLines()
.filter { it.isNotBlank() && !it.startsWith("#") }.associate { it.substringBefore('\t') to it.substringAfter('\t') }
@Test fun theApprovedListOf260FilmsEachByYearAndImdbId() {
// All 260 approved films have their identity; the ones that play here are those with a slot under the ownership rules.
// The rest are Detour's and VHS's films that no event of PUNCHLINE's names: they stay at home only.
assertEquals(260, ratings.size); assertEquals(ratings.keys, PunchlineImdb.keys)
fun key(entry: String) = seriesKey(FilmIdentity.of(entry).title.replace("&", "and"))
fun keys(number: Int) = SmartChannels.first { it.number == number }.searches.map(::key).toSet()
val atHomeOnly = ratings.keys - PunchlineFilms.toSet()
assertEquals(emptyList<String>(), atHomeOnly.filter { key(it) !in keys(308) + keys(306) })
assertEquals(217, PunchlineFilms.size)
PunchlineFilms.forEach { entry ->
val identity = FilmIdentity.of(entry)
assertTrue(entry, identity.year != null && identity.imdb == PunchlineImdb[entry] && identity.imdb!!.startsWith("tt"))
}
assertEquals(260, PunchlineImdb.values.toSet().size)
assertTrue(channel.filmRestMs != null && channel.exactTitles)
}
@Test fun detourVhsAndSilverScreenKeepTheirFilms() {
// Their films play here only in the events that name them (Spoof Friday, Star of the Month, Sunday Classic).
fun keys(number: Int) = SmartChannels.first { it.number == number }.searches.map { seriesKey(FilmIdentity.of(it).title) }.toSet()
val homes = keys(308) + keys(306) + keys(SILVER_SCREEN_NUMBER)
val everyday = channel.dayParts.filter { it.days.isEmpty() }.flatMap { it.titles }
assertEquals(emptyList<String>(), everyday.filter { seriesKey(FilmIdentity.of(it).title) in homes })
// Detour itself is unchanged by PUNCHLINE.
assertTrue("Ace Ventura: Pet Detective" in SmartChannels.first { it.number == 308 }.searches)
}
@Test fun nothingAdultOrUnknownStartsBefore21() {
fun dayOk(entry: String): Boolean {
val band = ratingBand(ratings.getValue(entry))
return band == RatingBand.Kids || band == RatingBand.Family || band == RatingBand.Teen || (band == RatingBand.Unknown && FilmIdentity.of(entry).year!! < 1968)
}
val early = channel.dayParts.filter { it.fromHour in 6..20 && it.toHour in 7..21 }
assertTrue(early.isNotEmpty())
early.forEach { part -> part.titles.forEach { assertTrue("${part.group}: $it (${ratings[it]})", dayOk(it)) } }
// Every code in the list is one the app reads, apart from Spain's A-TP, which it reads as unknown, so that film waits for 21:00.
assertEquals(RatingBand.Unknown, ratingBand("A-TP"))
assertTrue("Mr. Popper's Penguins (2011)" !in early.flatMap { it.titles })
}
@Test fun starOfTheMonthGoesRoundTheYear() {
val months = PunchlineStarMonths.flatMap { it.second }
assertEquals(Month.values().toSet(), months.toSet()); assertEquals(12, months.size)
// Saturday 5 December 2026 is Jim Carrey's, Saturday 2 January 2027 Eddie Murphy's.
assertEquals("Star of the Month: Jim Carrey", parts(at(2026, 12, 5, 20, 0)).first().group)
assertEquals("Star of the Month: Eddie Murphy", parts(at(2027, 1, 2, 20, 0)).first().group)
assertEquals("Star of the Month: Eddie Murphy", parts(at(2027, 1, 2, 22, 0)).first().group)
// Not on a Friday: Spoof Friday has that evening.
assertEquals("Spoof Friday", parts(at(2026, 12, 4, 21, 0)).first().group)
}
@Test fun theMonthlyAndWeeklyEventsFallOnTheirNights() {
assertEquals("Best of British", parts(at(2026, 12, 3, 21, 0)).first().group)
assertEquals("Late Laughs", parts(at(2026, 12, 10, 21, 0)).first().group)
assertEquals("Sunday Classic", parts(at(2026, 12, 6, 15, 0)).first().group)
assertEquals("Cult Corner", parts(at(2026, 12, 6, 2, 0)).first().group)
}
@Test fun theChristmasComediesOnlyInDecember() {
val christmas = setOf("Elf (2003)", "Scrooged (1988)")
assertTrue(parts(at(2026, 12, 9, 18)).first().titles.containsAll(christmas))
// Christmas Vacation is VHS's and Bad Santa Detour's: they stay at home.
assertTrue(PunchlineFilms.none { it.startsWith("National Lampoon's Christmas Vacation") || it.startsWith("Bad Santa") })
listOf(at(2027, 1, 13, 18), at(2027, 1, 13, 22), at(2027, 1, 13, 8), at(2027, 1, 13, 13), at(2027, 1, 13, 3)).forEach { time ->
assertTrue(parts(time).flatMap { it.titles }.none { it in christmas })
}
}
@Test fun everyBlockAndEventHasItsIdentAndTheChannelItsBrand() {
channel.dayParts.forEach { assertTrue(it.key, it.key in BlockIdents.keys) }
assertEquals("PUNCHLINE", ChannelBrands.forNumber(PUNCHLINE_NUMBER)!!.displayName)
assertTrue(identVideo(PUNCHLINE_NUMBER) != null)
assertNull(AtlasPlayback.forProgramme(PUNCHLINE_NUMBER, "Airplane! (1980)"))
}
}
@@ -19,7 +19,8 @@ class SpecialEventsTest {
// Identity, not equality: the very same rule each channel plans with, once each.
expected.forEach { (n, part) -> assertEquals("channel $n ${part.key}${part.group}", 1, held.count { it.first == n && it.second === part }) }
assertEquals(expected.size, held.size)
assertEquals(55, held.size)
// 55 before PUNCHLINE's 13 and SYNDICATE's 5 (Paul, 25 November 2026).
assertEquals(55 + 13 + 5, held.size)
}
@Test fun everyTakeoverIsThereExactlyOnce() {
@@ -36,7 +37,7 @@ class SpecialEventsTest {
}
@Test fun stageAAddsNothingAndEverythingIsApproved() {
assertEquals(55 + 4 + 18, all.size)
assertEquals(55 + 13 + 5 + 4 + 18, all.size)
assertTrue(all.all { it.status == SpecialStatus.Approved })
}
@@ -0,0 +1,88 @@
package tv.orbit.classic
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
import java.time.LocalDateTime
import java.time.ZoneId
/** SYNDICATE (114), approved by Paul on 25 November 2026: crime series and gangster cinema. */
class SyndicateChannelTest {
private val zone = ZoneId.of("Europe/London")
private val channel = SmartChannels.first { it.number == SYNDICATE_NUMBER }
private fun at(y: Int, m: Int, d: Int, h: Int) = LocalDateTime.of(y, m, d, h, 0).atZone(zone)
private fun group(time: java.time.ZonedDateTime) = channel.dayParts.first { it.covers(time) }.group
@Test fun itsSeriesAndGuests() {
val shows = channel.searches
// Peaky Blinders waits for its S4 E3 (Paul, 25 November 2026); Power's sequels wait for Power; Gomorrah stays on ATLAS.
listOf("Peaky Blinders", "Power Book II: Ghost", "Power Book IV: Force", "Gomorrah").forEach { assertFalse(it, it in shows) }
assertEquals(20, shows.size)
// The guests stay at home: Signature has three, Evidence The Wire.
fun on(n: Int) = SmartChannels.first { it.number == n }.searches
assertTrue(listOf("The Sopranos", "Boardwalk Empire", "Narcos").all { it in on(109) }); assertTrue("The Wire" in on(107))
SyndicateGuests.forEach { assertEquals(it, TIER_SURPRISE, channel.tierWeights!!.getValue(seriesKey(it)), 0.0) }
assertEquals(TIER_CORE, channel.tierWeights!!.getValue(seriesKey("Top Boy")), 0.0)
// Every series is pinned by its IMDb ID, in case a name search's top ten misses it.
assertEquals(shows.toSet(), SyndicatePinnedSeries.keys)
assertTrue(channel.storyGrouping && channel.englishAudio && channel.filmRestMs == null)
}
@Test fun itsFilmsByYearAndImdbIdAndTheTwoResolved() {
assertEquals(155, SyndicateFilms.size)
SyndicateFilms.forEach { assertEquals(it, SyndicateImdb[it], FilmIdentity.of(it).imdb) }
assertEquals("tt0097202", SyndicateImdb["The Killer (1989)"])
assertTrue(SyndicateFilms.none { it.startsWith("Outrage") || it.startsWith("First Love") })
assertEquals(channel.channelFilms, SyndicateFilms)
// Films rest five days here, as across the network.
assertEquals(NETWORK_FILM_REST_MS, channel.fileRestMs)
}
@Test fun theDayAndItsEvents() {
// Wednesday 2 December 2026.
assertEquals("Public Enemies", group(at(2026, 12, 2, 7))); assertEquals("The Corner", group(at(2026, 12, 2, 12)))
assertEquals("The Job", group(at(2026, 12, 2, 18))); assertEquals("Made Men", group(at(2026, 12, 2, 21)))
assertEquals("Crime Prime", group(at(2026, 12, 2, 23))); assertEquals("Underworld", group(at(2026, 12, 3, 3)))
assertEquals("The Family", group(at(2026, 12, 6, 20)))
assertEquals("Heist Friday", group(at(2026, 12, 4, 19))); assertEquals("Heist Friday", group(at(2026, 12, 4, 21)))
assertEquals("The Firm", group(at(2026, 12, 3, 22)))
// Triads and Yakuza: the last Saturday of the month, past midnight included, and no other.
assertEquals("Triads and Yakuza", group(at(2026, 12, 26, 23))); assertEquals("Triads and Yakuza", group(at(2026, 12, 27, 1)))
assertEquals("Crime Prime", group(at(2026, 12, 19, 23)))
assertEquals("Triads and Yakuza", group(at(2027, 1, 30, 23)))
// The Family keeps the saga in order.
assertEquals(listOf("The Godfather (1972)", "The Godfather Part II (1974)", "The Godfather Part III (1990)"), SyndicateFamily.take(3))
}
@Test fun atlasRuleOnlyForTheCrossoverFilms() {
assertEquals("zh", AtlasPlayback.forProgramme(SYNDICATE_NUMBER, "Hard Boiled")?.original)
assertEquals("ko", AtlasPlayback.forProgramme(SYNDICATE_NUMBER, "A Bittersweet Life")?.original)
assertNull(AtlasPlayback.forProgramme(SYNDICATE_NUMBER, "Goodfellas"))
assertNull(AtlasPlayback.forProgramme(SYNDICATE_NUMBER, "The Sopranos / S1 E1 / The Sopranos"))
assertNotNull(AtlasPlayback.sourceCheck(SYNDICATE_NUMBER, "Election"))
assertNull(AtlasPlayback.sourceCheck(SYNDICATE_NUMBER, "Power"))
// Other channels: unchanged.
assertNull(AtlasPlayback.forProgramme(302, "Hard Boiled")); assertNull(AtlasPlayback.sourceCheck(302, "Hard Boiled"))
assertEquals("zh", AtlasPlayback.forProgramme(ATLAS_NUMBER, "Hard Boiled")?.original)
SyndicateCrossover.forEach { assertNotNull(it, AtlasPlayback.forProgramme(SYNDICATE_NUMBER, FilmIdentity.of(it).title)) }
}
@Test fun aSeriesTheSearchMissesIsFoundByItsImdbId() {
val near = listOf(SeriesCandidate("1", "Power Rangers", 1993, "TV-Y7"), SeriesCandidate("2", "Powerless", 2017, "TV-14"))
val asked = mutableListOf<String>()
val found = atlasPinnedCandidates(SYNDICATE_NUMBER, "Power", near) {
asked += it; listOf(JSONObject().put("Id", "3206319").put("Name", "Power").put("Type", "Series").put("ProductionYear", 2014))
}
assertEquals(listOf("imdb.tt3281796"), asked); assertEquals("3206319", found.single().id)
}
@Test fun everyBlockAndEventHasItsIdentAndTheChannelItsBrand() {
channel.dayParts.forEach { assertTrue(it.key, it.key in BlockIdents.keys) }
assertEquals(ChannelCategory.Entertainment, ChannelBrands.forNumber(SYNDICATE_NUMBER)!!.category)
assertTrue(identVideo(SYNDICATE_NUMBER) != null)
}
}
@@ -190,10 +190,10 @@ class WeightedRotationTest {
}
@Test fun theApprovedChannelsAreWeightedAndTotsBedtimeIsNot() {
assertEquals(listOf(101, 102, 103, 104, 106, 107, 108, 112, ATLAS_NUMBER, 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, ATLAS_NUMBER, SYNDICATE_NUMBER, 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())
assertEquals(setOf(103, 202, 204, 601, 604, 605, 614, SYNDICATE_NUMBER), SmartChannels.filter { it.catalogueScaleHours != null }.map { it.number }.toSet())
assertEquals(setOf(103, 202), SmartChannels.filter { it.catalogueScaleFloor == 0.5 }.map { it.number }.toSet())
assertEquals(TIER_SUPPORTING, SmartChannels.first { it.number == 204 }.weightOf(show("Haunted", 100, 60)), 0.0)
assertEquals(TIER_CORE, SmartChannels.first { it.number == 101 }.weightOf(show("The Wonder Years", 100, 60)), 0.0)
File diff suppressed because one or more lines are too long
@@ -0,0 +1,261 @@
# PUNCHLINE's films and the age rating their library copies carry (audit-20261125-newfilm, 25 November 2026)
National Lampoon's Animal House (1978) R
Caddyshack (1980) R
The Blues Brothers (1980) R
Stripes (1981) R
National Lampoon's Vacation (1983) R
Ghostbusters (1984) PG
National Lampoon's European Vacation (1985) PG-13
Fletch (1985) PG
Spies Like Us (1985) PG
Back to School (1986) PG-13
Ferris Bueller's Day Off (1986) PG-13
¡Three Amigos! (1986) PG
Planes, Trains & Automobiles (1987) R
Raising Arizona (1987) PG-13
Throw Momma from the Train (1987) PG-13
Big (1988) PG
Twins (1988) PG
The Great Outdoors (1988) PG
Dirty Rotten Scoundrels (1988) PG
Scrooged (1988) PG-13
National Lampoon's Christmas Vacation (1989) PG-13
Ghostbusters II (1989) PG
Uncle Buck (1989) PG
Weekend at Bernie's (1989) PG-13
Bill & Ted's Excellent Adventure (1989) PG
Kindergarten Cop (1990) PG-13
What About Bob? (1991) PG
City Slickers (1991) PG-13
Wayne's World (1992) PG-13
My Cousin Vinny (1992) R
Wayne's World 2 (1993) PG-13
Groundhog Day (1993) PG
Mrs. Doubtfire (1993) PG-13
So I Married an Axe Murderer (1993) PG-13
Tommy Boy (1995) PG-13
Friday (1995) R
Bad Boys (1995) R
Clueless (1995) PG-13
Black Sheep (1996) PG-13
Kingpin (1996) PG-13
The Big Lebowski (1998) R
Rush Hour (1998) PG-13
Office Space (1999) R
Rush Hour 2 (2001) PG-13
Billy Madison (1995) PG-13
Happy Gilmore (1996) PG-13
The Wedding Singer (1998) PG-13
The Waterboy (1998) PG-13
Big Daddy (1999) PG-13
Little Nicky (2000) PG-13
Mr. Deeds (2002) PG-13
Anger Management (2003) PG-13
50 First Dates (2004) PG-13
The Longest Yard (2005) PG-13
Click (2006) 7
I Now Pronounce You Chuck & Larry (2007) PG-13
You Don't Mess with the Zohan (2008) PG-13
Grown Ups (2010) PG-13
Just Go with It (2011) PG-13
Grown Ups 2 (2013) PG-13
Murder Mystery (2019) PG-13
Hubie Halloween (2020) PG-13
Happy Gilmore 2 (2025) PG-13
There's Something About Mary (1998) R
Meet the Parents (2000) PG-13
Zoolander (2001) PG-13
Starsky & Hutch (2004) PG-13
DodgeBall: A True Underdog Story (2004) PG-13
Along Came Polly (2004) PG-13
Meet the Fockers (2004) M12
Night at the Museum (2006) PG
Tropic Thunder (2008) R
Night at the Museum: Battle of the Smithsonian (2009) PG
Little Fockers (2010) M12
Night at the Museum: Secret of the Tomb (2014) PG
Zoolander 2 (2016) PG-13
Kind Hearts and Coronets (1949) NR
The Lavender Hill Mob (1951) NR
The Ladykillers (1955) NR
The Italian Job (1969) G
Monty Python and the Holy Grail (1975) PG
Life of Brian (1979) R
Monty Python's The Meaning of Life (1983) R
Withnail & I (1987) R
A Fish Called Wanda (1988) R
Four Weddings and a Funeral (1994) R
The Full Monty (1997) R
Bean (1997) PG-13
Notting Hill (1999) PG-13
Johnny English (2003) PG
Shaun of the Dead (2004) 16
Hot Fuzz (2007) R
Death at a Funeral (2007) R
Mr. Bean's Holiday (2007) G
In Bruges (2008) R
Four Lions (2010) R
The Inbetweeners Movie (2011) R
Paul (2011) R
Johnny English Reborn (2011) PG
The World's End (2013) R
The Inbetweeners 2 (2014) R
Kingsman: The Secret Service (2014) R
Duck Soup (1933) NR
A Night at the Opera (1935) NR
Bringing Up Baby (1938) NR
His Girl Friday (1940) NR
The Philadelphia Story (1940) NR
Arsenic and Old Lace (1944) NR
Some Like It Hot (1959) Approved
The Apartment (1960) Approved
The Pink Panther (1963) PG
Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964) PG
What's Up, Doc? (1972) G
Sleeper (1973) PG
The Return of the Pink Panther (1975) G
The Pink Panther Strikes Again (1976) PG
Murder by Death (1976) PG
Silver Streak (1976) PG
Annie Hall (1977) PG
Smokey and the Bandit (1977) PG
The Jerk (1979) R
48 Hrs. (1982) R
Trading Places (1983) R
Beverly Hills Cop (1984) R
Beverly Hills Cop II (1987) R
Coming to America (1988) R
Harlem Nights (1989) R
Another 48 Hrs. (1990) R
Boomerang (1992) R
The Nutty Professor (1996) PG-13
Bowfinger (1999) PG-13
Life (1999) R
Nutty Professor II: The Klumps (2000) PG-13
Tower Heist (2011) PG-13
Dolemite Is My Name (2019) R
Coming 2 America (2021) PG-13
Ace Ventura: Pet Detective (1994) PG-13
The Mask (1994) PG-13
Dumb and Dumber (1994) PG-13
Ace Ventura: When Nature Calls (1995) PG-13
The Cable Guy (1996) PG-13
Liar Liar (1997) PG-13
The Truman Show (1998) PG
Me, Myself & Irene (2000) R
Bruce Almighty (2003) PG-13
Fun with Dick and Jane (2005) PG-13
Yes Man (2008) PG-13
Mr. Popper's Penguins (2011) A-TP
Dumb and Dumber To (2014) PG-13
The Producers (1967) PG
Blazing Saddles (1974) R
Young Frankenstein (1974) PG
Silent Movie (1976) PG
High Anxiety (1977) PG
History of the World: Part I (1981) R
To Be or Not to Be (1983) PG
Spaceballs (1987) PG
Life Stinks (1991) PG-13
Robin Hood: Men in Tights (1993) PG-13
Dracula: Dead and Loving It (1995) PG-13
Shanghai Noon (2000) PG-13
Super Troopers (2001) R
School of Rock (2003) PG-13
Bad Santa (2003) R
Mean Girls (2004) PG-13
Napoleon Dynamite (2004) PG
Wedding Crashers (2005) R
The 40-Year-Old Virgin (2005) 15
Tenacious D in The Pick of Destiny (2006) R
Nacho Libre (2006) PG
Knocked Up (2007) R
Superbad (2007) R
Forgetting Sarah Marshall (2008) R
Pineapple Express (2008) R
Role Models (2008) R
I Love You, Man (2009) R
The Hangover (2009) R
Zombieland (2009) R
Hot Tub Time Machine (2010) R
Get Him to the Greek (2010) R
Due Date (2010) R
Bridesmaids (2011) R
Horrible Bosses (2011) R
Crazy, Stupid, Love. (2011) PG-13
The Hangover Part II (2011) R
21 Jump Street (2012) R
Ted (2012) R
Pitch Perfect (2012) PG-13
This Is the End (2013) R
We're the Millers (2013) R
The Heat (2013) R
What We Do in the Shadows (2014) R
22 Jump Street (2014) R
Neighbors (2014) R
Spy (2015) R
Trainwreck (2015) R
Vacation (2015) R
Hunt for the Wilderpeople (2016) PG-13
Deadpool (2016) R
The Nice Guys (2016) R
Game Night (2018) R
Blockers (2018) R
Tag (2018) R
Super Troopers 2 (2018) R
Booksmart (2019) R
Good Boys (2019) R
Palm Springs (2020) R
Free Guy (2021) PG-13
Vacation Friends (2021) R
The Lost City (2022) PG-13
Bullet Train (2022) R
Confess, Fletch (2022) R
Cocaine Bear (2023) R
Barbie (2023) PG-13
No Hard Feelings (2023) R
Bottoms (2023) R
Hit Man (2024) R
The Fall Guy (2024) PG-13
Ricky Stanicky (2024) R
Airplane! (1980) PG
Airplane II: The Sequel (1982) PG
Top Secret! (1984) PG
This Is Spinal Tap (1984) R
The Naked Gun: From the Files of Police Squad! (1988) PG-13
The Naked Gun 2½: The Smell of Fear (1991) PG-13
Hot Shots! (1991) PG-13
Hot Shots! Part Deux (1993) PG-13
Naked Gun 33⅓: The Final Insult (1994) PG-13
Austin Powers: International Man of Mystery (1997) PG-13
Galaxy Quest (1999) PG
Austin Powers: The Spy Who Shagged Me (1999) PG-13
Scary Movie (2000) R
Scary Movie 2 (2001) R
Not Another Teen Movie (2001) R
Austin Powers in Goldmember (2002) PG-13
Kung Pow! Enter the Fist (2002) PG-13
Scary Movie 3 (2003) R
Team America: World Police (2004) R
Scary Movie 4 (2006) PG-13
Walk Hard: The Dewey Cox Story (2007) R
Hot Rod (2007) PG-13
MacGruber (2010) R
Popstar: Never Stop Never Stopping (2016) R
The Naked Gun (2025) PG-13
A Night at the Roxbury (1998) PG-13
Old School (2003) R
Elf (2003) PG
Anchorman: The Legend of Ron Burgundy (2004) PG-13
Kicking & Screaming (2005) PG
Talladega Nights: The Ballad of Ricky Bobby (2006) PG-13
Blades of Glory (2007) PG-13
Semi-Pro (2008) R
Step Brothers (2008) R
The Other Guys (2010) PG-13
The Campaign (2012) R
Anchorman 2: The Legend Continues (2013) PG-13
Get Hard (2015) R
Daddy's Home (2015) PG-13
Daddy's Home 2 (2017) PG-13
Eurovision Song Contest: The Story of Fire Saga (2020) PG-13
1 # PUNCHLINE's films and the age rating their library copies carry (audit-20261125-newfilm, 25 November 2026)
2 National Lampoon's Animal House (1978) R
3 Caddyshack (1980) R
4 The Blues Brothers (1980) R
5 Stripes (1981) R
6 National Lampoon's Vacation (1983) R
7 Ghostbusters (1984) PG
8 National Lampoon's European Vacation (1985) PG-13
9 Fletch (1985) PG
10 Spies Like Us (1985) PG
11 Back to School (1986) PG-13
12 Ferris Bueller's Day Off (1986) PG-13
13 ¡Three Amigos! (1986) PG
14 Planes, Trains & Automobiles (1987) R
15 Raising Arizona (1987) PG-13
16 Throw Momma from the Train (1987) PG-13
17 Big (1988) PG
18 Twins (1988) PG
19 The Great Outdoors (1988) PG
20 Dirty Rotten Scoundrels (1988) PG
21 Scrooged (1988) PG-13
22 National Lampoon's Christmas Vacation (1989) PG-13
23 Ghostbusters II (1989) PG
24 Uncle Buck (1989) PG
25 Weekend at Bernie's (1989) PG-13
26 Bill & Ted's Excellent Adventure (1989) PG
27 Kindergarten Cop (1990) PG-13
28 What About Bob? (1991) PG
29 City Slickers (1991) PG-13
30 Wayne's World (1992) PG-13
31 My Cousin Vinny (1992) R
32 Wayne's World 2 (1993) PG-13
33 Groundhog Day (1993) PG
34 Mrs. Doubtfire (1993) PG-13
35 So I Married an Axe Murderer (1993) PG-13
36 Tommy Boy (1995) PG-13
37 Friday (1995) R
38 Bad Boys (1995) R
39 Clueless (1995) PG-13
40 Black Sheep (1996) PG-13
41 Kingpin (1996) PG-13
42 The Big Lebowski (1998) R
43 Rush Hour (1998) PG-13
44 Office Space (1999) R
45 Rush Hour 2 (2001) PG-13
46 Billy Madison (1995) PG-13
47 Happy Gilmore (1996) PG-13
48 The Wedding Singer (1998) PG-13
49 The Waterboy (1998) PG-13
50 Big Daddy (1999) PG-13
51 Little Nicky (2000) PG-13
52 Mr. Deeds (2002) PG-13
53 Anger Management (2003) PG-13
54 50 First Dates (2004) PG-13
55 The Longest Yard (2005) PG-13
56 Click (2006) 7
57 I Now Pronounce You Chuck & Larry (2007) PG-13
58 You Don't Mess with the Zohan (2008) PG-13
59 Grown Ups (2010) PG-13
60 Just Go with It (2011) PG-13
61 Grown Ups 2 (2013) PG-13
62 Murder Mystery (2019) PG-13
63 Hubie Halloween (2020) PG-13
64 Happy Gilmore 2 (2025) PG-13
65 There's Something About Mary (1998) R
66 Meet the Parents (2000) PG-13
67 Zoolander (2001) PG-13
68 Starsky & Hutch (2004) PG-13
69 DodgeBall: A True Underdog Story (2004) PG-13
70 Along Came Polly (2004) PG-13
71 Meet the Fockers (2004) M12
72 Night at the Museum (2006) PG
73 Tropic Thunder (2008) R
74 Night at the Museum: Battle of the Smithsonian (2009) PG
75 Little Fockers (2010) M12
76 Night at the Museum: Secret of the Tomb (2014) PG
77 Zoolander 2 (2016) PG-13
78 Kind Hearts and Coronets (1949) NR
79 The Lavender Hill Mob (1951) NR
80 The Ladykillers (1955) NR
81 The Italian Job (1969) G
82 Monty Python and the Holy Grail (1975) PG
83 Life of Brian (1979) R
84 Monty Python's The Meaning of Life (1983) R
85 Withnail & I (1987) R
86 A Fish Called Wanda (1988) R
87 Four Weddings and a Funeral (1994) R
88 The Full Monty (1997) R
89 Bean (1997) PG-13
90 Notting Hill (1999) PG-13
91 Johnny English (2003) PG
92 Shaun of the Dead (2004) 16
93 Hot Fuzz (2007) R
94 Death at a Funeral (2007) R
95 Mr. Bean's Holiday (2007) G
96 In Bruges (2008) R
97 Four Lions (2010) R
98 The Inbetweeners Movie (2011) R
99 Paul (2011) R
100 Johnny English Reborn (2011) PG
101 The World's End (2013) R
102 The Inbetweeners 2 (2014) R
103 Kingsman: The Secret Service (2014) R
104 Duck Soup (1933) NR
105 A Night at the Opera (1935) NR
106 Bringing Up Baby (1938) NR
107 His Girl Friday (1940) NR
108 The Philadelphia Story (1940) NR
109 Arsenic and Old Lace (1944) NR
110 Some Like It Hot (1959) Approved
111 The Apartment (1960) Approved
112 The Pink Panther (1963) PG
113 Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964) PG
114 What's Up, Doc? (1972) G
115 Sleeper (1973) PG
116 The Return of the Pink Panther (1975) G
117 The Pink Panther Strikes Again (1976) PG
118 Murder by Death (1976) PG
119 Silver Streak (1976) PG
120 Annie Hall (1977) PG
121 Smokey and the Bandit (1977) PG
122 The Jerk (1979) R
123 48 Hrs. (1982) R
124 Trading Places (1983) R
125 Beverly Hills Cop (1984) R
126 Beverly Hills Cop II (1987) R
127 Coming to America (1988) R
128 Harlem Nights (1989) R
129 Another 48 Hrs. (1990) R
130 Boomerang (1992) R
131 The Nutty Professor (1996) PG-13
132 Bowfinger (1999) PG-13
133 Life (1999) R
134 Nutty Professor II: The Klumps (2000) PG-13
135 Tower Heist (2011) PG-13
136 Dolemite Is My Name (2019) R
137 Coming 2 America (2021) PG-13
138 Ace Ventura: Pet Detective (1994) PG-13
139 The Mask (1994) PG-13
140 Dumb and Dumber (1994) PG-13
141 Ace Ventura: When Nature Calls (1995) PG-13
142 The Cable Guy (1996) PG-13
143 Liar Liar (1997) PG-13
144 The Truman Show (1998) PG
145 Me, Myself & Irene (2000) R
146 Bruce Almighty (2003) PG-13
147 Fun with Dick and Jane (2005) PG-13
148 Yes Man (2008) PG-13
149 Mr. Popper's Penguins (2011) A-TP
150 Dumb and Dumber To (2014) PG-13
151 The Producers (1967) PG
152 Blazing Saddles (1974) R
153 Young Frankenstein (1974) PG
154 Silent Movie (1976) PG
155 High Anxiety (1977) PG
156 History of the World: Part I (1981) R
157 To Be or Not to Be (1983) PG
158 Spaceballs (1987) PG
159 Life Stinks (1991) PG-13
160 Robin Hood: Men in Tights (1993) PG-13
161 Dracula: Dead and Loving It (1995) PG-13
162 Shanghai Noon (2000) PG-13
163 Super Troopers (2001) R
164 School of Rock (2003) PG-13
165 Bad Santa (2003) R
166 Mean Girls (2004) PG-13
167 Napoleon Dynamite (2004) PG
168 Wedding Crashers (2005) R
169 The 40-Year-Old Virgin (2005) 15
170 Tenacious D in The Pick of Destiny (2006) R
171 Nacho Libre (2006) PG
172 Knocked Up (2007) R
173 Superbad (2007) R
174 Forgetting Sarah Marshall (2008) R
175 Pineapple Express (2008) R
176 Role Models (2008) R
177 I Love You, Man (2009) R
178 The Hangover (2009) R
179 Zombieland (2009) R
180 Hot Tub Time Machine (2010) R
181 Get Him to the Greek (2010) R
182 Due Date (2010) R
183 Bridesmaids (2011) R
184 Horrible Bosses (2011) R
185 Crazy, Stupid, Love. (2011) PG-13
186 The Hangover Part II (2011) R
187 21 Jump Street (2012) R
188 Ted (2012) R
189 Pitch Perfect (2012) PG-13
190 This Is the End (2013) R
191 We're the Millers (2013) R
192 The Heat (2013) R
193 What We Do in the Shadows (2014) R
194 22 Jump Street (2014) R
195 Neighbors (2014) R
196 Spy (2015) R
197 Trainwreck (2015) R
198 Vacation (2015) R
199 Hunt for the Wilderpeople (2016) PG-13
200 Deadpool (2016) R
201 The Nice Guys (2016) R
202 Game Night (2018) R
203 Blockers (2018) R
204 Tag (2018) R
205 Super Troopers 2 (2018) R
206 Booksmart (2019) R
207 Good Boys (2019) R
208 Palm Springs (2020) R
209 Free Guy (2021) PG-13
210 Vacation Friends (2021) R
211 The Lost City (2022) PG-13
212 Bullet Train (2022) R
213 Confess, Fletch (2022) R
214 Cocaine Bear (2023) R
215 Barbie (2023) PG-13
216 No Hard Feelings (2023) R
217 Bottoms (2023) R
218 Hit Man (2024) R
219 The Fall Guy (2024) PG-13
220 Ricky Stanicky (2024) R
221 Airplane! (1980) PG
222 Airplane II: The Sequel (1982) PG
223 Top Secret! (1984) PG
224 This Is Spinal Tap (1984) R
225 The Naked Gun: From the Files of Police Squad! (1988) PG-13
226 The Naked Gun 2½: The Smell of Fear (1991) PG-13
227 Hot Shots! (1991) PG-13
228 Hot Shots! Part Deux (1993) PG-13
229 Naked Gun 33⅓: The Final Insult (1994) PG-13
230 Austin Powers: International Man of Mystery (1997) PG-13
231 Galaxy Quest (1999) PG
232 Austin Powers: The Spy Who Shagged Me (1999) PG-13
233 Scary Movie (2000) R
234 Scary Movie 2 (2001) R
235 Not Another Teen Movie (2001) R
236 Austin Powers in Goldmember (2002) PG-13
237 Kung Pow! Enter the Fist (2002) PG-13
238 Scary Movie 3 (2003) R
239 Team America: World Police (2004) R
240 Scary Movie 4 (2006) PG-13
241 Walk Hard: The Dewey Cox Story (2007) R
242 Hot Rod (2007) PG-13
243 MacGruber (2010) R
244 Popstar: Never Stop Never Stopping (2016) R
245 The Naked Gun (2025) PG-13
246 A Night at the Roxbury (1998) PG-13
247 Old School (2003) R
248 Elf (2003) PG
249 Anchorman: The Legend of Ron Burgundy (2004) PG-13
250 Kicking & Screaming (2005) PG
251 Talladega Nights: The Ballad of Ricky Bobby (2006) PG-13
252 Blades of Glory (2007) PG-13
253 Semi-Pro (2008) R
254 Step Brothers (2008) R
255 The Other Guys (2010) PG-13
256 The Campaign (2012) R
257 Anchorman 2: The Legend Continues (2013) PG-13
258 Get Hard (2015) R
259 Daddy's Home (2015) PG-13
260 Daddy's Home 2 (2017) PG-13
261 Eurovision Song Contest: The Story of Fire Saga (2020) PG-13