Roadmap: After Dark editorial events (Hammer Horror Double Bill, Universal Monsters Takeover, J-Horror After Midnight), proposals only
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -374,7 +374,7 @@ internal val PpvSunday = listOf("WWE WrestleMania III", "WCW Capital Combat: The
|
||||
"IMPACT Wrestling: Bound for Glory 2019", "WCW Bash at the Beach 1996", "WWE WrestleMania XV", "NWA Chi-Town Rumble", "AEW Full Gear (2021)",
|
||||
"WWE Survivor Series 1997", "ECW November To Remember 1998", "WCW Spring Stampede 1994", "WWE King of the Ring 1998")
|
||||
|
||||
// Weighted rotation for seven more channels (approved 4 November 2026). Rewind and Dark Files wait on a repeat investigation;
|
||||
// Weighted rotation for seven more channels (approved 4 November 2026). Rewind and Dark Files follow below, with the catalogue-size hybrid;
|
||||
// Riot, Terra, Ring X and Junior keep equal turns.
|
||||
/** Orbit 1's tiers, from docs/channels/orbit-1.md (approved 4 November 2026): core 3, surprises 1, everything else 2. */
|
||||
internal val Orbit1Tiers: Map<String, Double> get() =
|
||||
@@ -401,3 +401,10 @@ internal val HeroesTiers: Map<String, Double> get() =
|
||||
/** Vortex's tiers, from docs/channels/vortex.md (approved 4 November 2026): core 3, surprises 1, everything else 2. */
|
||||
internal val VortexTiers: Map<String, Double> get() =
|
||||
listOf("Batman Beyond", "Cardcaptor Sakura", "Dragon Ball", "Dragon Ball GT", "Dragon Ball Z", "Jonny Quest", "Gundam Wing", "Mobile Suit Gundam Wing", "Mortal Kombat: Defenders of the Realm", "Outlaw Star", "Pokémon", "Sailor Moon", "Samurai Jack", "Tenchi Muyo", "Tenchi Muyo! Ryo-Ohki", "Tenchi Universe", "Tenchi Muyo! Tenchi Universe", "The Big O", "ThunderCats", "Yu Yu Hakusho", "Yu-Gi-Oh! Duel Monsters").associate { seriesKey(it) to TIER_CORE }
|
||||
|
||||
// Rewind and Dark Files join with the catalogue-size hybrid (approved 4 November 2026), as Vortex does.
|
||||
/** Rewind's tiers, from docs/channels/rewind.md: the core 3, everything else 2. */
|
||||
internal val RewindTiers: Map<String, Double> get() = RewindCore.associate { seriesKey(it) to TIER_CORE }
|
||||
/** Dark Files' tiers, from docs/channels/dark-files.md: the core 3, everything else 2. ("Haunted" is its own series, not Most Haunted.) */
|
||||
internal val DarkFilesTiers: Map<String, Double> get() =
|
||||
listOf("Forensic Files", "Cold Case Files", "Snapped", "Unsolved Mysteries", "Most Haunted", "Ghost Adventures", "Paranormal Witness").associate { seriesKey(it) to TIER_CORE }
|
||||
|
||||
@@ -45,9 +45,18 @@ internal data class ChannelProgramming(val number: Int, val name: String, val se
|
||||
*/
|
||||
val tierWeights: Map<String, Double>? = null,
|
||||
/** A film channel's everyday blocks rest each film for a share of how long their own films take to play through ([adaptiveRestMs]). */
|
||||
val adaptiveFilmRest: Boolean = false) {
|
||||
/** A show's weight here, by its tier; a show the brief doesn't name counts as supporting. */
|
||||
fun weightOf(show: PoolSeries) = tierWeights?.get(seriesKey(show.title)) ?: TIER_SUPPORTING
|
||||
val adaptiveFilmRest: Boolean = false,
|
||||
/**
|
||||
* Weighted channels only: a show with fewer hours of episodes than this has its tier's weight scaled down by its size,
|
||||
* so a short catalogue comes round at a pace it can sustain instead of every week. Null keeps every tier whole.
|
||||
*/
|
||||
val catalogueScaleHours: Double? = null) {
|
||||
/** A show's weight here, by its tier (a show the brief doesn't name counts as supporting), scaled by [catalogueScaleHours]. */
|
||||
fun weightOf(show: PoolSeries): Double {
|
||||
val tier = tierWeights?.get(seriesKey(show.title)) ?: TIER_SUPPORTING
|
||||
val hours = show.episodes.sumOf { it.durationMs } / 3_600_000.0
|
||||
return tier * (catalogueScaleHours?.let { (hours / it).coerceIn(MIN_CATALOGUE_SCALE, 1.0) } ?: 1.0)
|
||||
}
|
||||
/** Whether a show plays its episodes in a mixed order here. */
|
||||
fun mixes(show: PoolSeries) = shuffleEpisodes || seriesKey(show.title) in shuffleTitles.mapTo(HashSet(), ::seriesKey)
|
||||
/** Changes when the list does, so the episode cache is read again. What's already committed stays. */
|
||||
@@ -88,7 +97,7 @@ internal val SmartChannels = listOf(
|
||||
SuggestionRule("day", "Daytime", "Movie", listOf("Science Fiction", "Action"), 1975..2005, 6.5f, setOf("NC-17", "X"), 40, NotCultCinema + "Adventure", 70, 7.9f),
|
||||
SuggestionRule("day", "Daytime", "Movie", listOf("Thriller", "Mystery"), 1975..2005, 6.5f, setOf("NC-17", "X"), 30, NotCultCinema + "Science Fiction", 70, 7.9f),
|
||||
SuggestionRule("late", "Late night", "Movie", listOf("Horror"), 1970..2010, 6f, emptySet(), 90, NotCultCinema, 70))),
|
||||
ChannelProgramming(VORTEX_NUMBER, "Vortex", VortexShows, seriesCount = 40, finishTogether = true, exactTitles = true, englishAudio = false, tierWeights = VortexTiers,
|
||||
ChannelProgramming(VORTEX_NUMBER, "Vortex", VortexShows, seriesCount = 40, finishTogether = true, exactTitles = true, englishAudio = false, tierWeights = VortexTiers, catalogueScaleHours = CATALOGUE_SCALE_HOURS,
|
||||
dayParts = VortexDayParts,
|
||||
suggestionRules = listOf(
|
||||
SuggestionRule("movie", "Movie Night", "Movie", listOf("Animation"), 1985..2025, 5f, setOf("NC-17", "X"), 30, setOf("Documentary"), 30, titleContains = "Dragon Ball"),
|
||||
@@ -104,14 +113,18 @@ internal val SmartChannels = listOf(
|
||||
ChannelPresets.filter { it.smartOnly }.map { ChannelProgramming(it.number, it.name, it.searches, seriesCount = if (it.films) it.searches.size else 60, finishTogether = !it.films, exactTitles = true,
|
||||
filmRestMs = if (it.films) 7 * 24 * 60 * 60_000L else null,
|
||||
suggestionRules = SmartChannelRules[it.number].orEmpty(), dayParts = SmartChannelParts[it.number].orEmpty(), shuffleTitles = SmartChannelMixed[it.number].orEmpty(),
|
||||
channelFilms = if (it.number == 401) PpvSunday else emptyList(), tierWeights = SmartChannelTiers[it.number], adaptiveFilmRest = it.number in AdaptiveFilmRestChannels) }
|
||||
channelFilms = if (it.number == 401) PpvSunday else emptyList(), tierWeights = SmartChannelTiers[it.number], adaptiveFilmRest = it.number in AdaptiveFilmRestChannels,
|
||||
catalogueScaleHours = if (it.number in CatalogueScaledChannels) CATALOGUE_SCALE_HOURS else null) }
|
||||
|
||||
/** Film channels whose rest adapts to their pools: Premiere, whose pool runs well past a week (After Dark is set above). Proposed 4 November 2026. */
|
||||
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, 107 to EvidenceTiers, 602 to HeroesTiers)
|
||||
101 to Orbit1Tiers, 102 to Orbit2Tiers, 104 to GoldTiers, 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 (Vortex is set above). */
|
||||
private val CatalogueScaledChannels get() = setOf(604, 204)
|
||||
|
||||
/** 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,
|
||||
@@ -340,6 +353,11 @@ private const val ON_TIME_RUN_IN_MS = 90 * 60_000L
|
||||
/** A series on a film channel airs at most once in this long, so a long event window still holds one episode. */
|
||||
private const val SERIES_NIGHT_MS = 12 * 60 * 60_000L
|
||||
|
||||
/** However short a show's catalogue, it keeps at least this share of its tier's weight, so it still comes round. */
|
||||
internal const val MIN_CATALOGUE_SCALE = 0.02
|
||||
/** The hybrid's threshold for Rewind, Dark Files and Vortex (approved 4 November 2026): under a day of episodes, a show's weight scales with its size. */
|
||||
internal const val CATALOGUE_SCALE_HOURS = 24.0
|
||||
|
||||
/** The tiers' weights: a core show gets one and a half times a supporting show's airtime in a block, a surprise half. */
|
||||
internal const val TIER_CORE = 3.0
|
||||
internal const val TIER_SUPPORTING = 2.0
|
||||
|
||||
Reference in New Issue
Block a user