From dfeed3babc6e26d806b82286b5c57bcadec0fe02 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Mon, 30 Nov 2026 14:10:33 +0000 Subject: [PATCH] Chair: wrestling events are Ring X's; a family heist isn't organised crime From Paul's shortlist review (30 November 2026): ECW Wrestlepalooza 1998 scored as Premiere cinema, and Coin Heist as SYNDICATE. Neither change moves any other verified film. Co-Authored-By: Claude Opus 5.5 --- .../app/src/main/java/tv/orbit/classic/DirectorScoring.kt | 7 ++++++- .../test/java/tv/orbit/classic/ChairFilmExamplesTest.kt | 8 ++++++++ android/app/src/test/resources/chair-film-examples.jsonl | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt b/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt index f288b592..bf756d46 100644 --- a/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt +++ b/android/app/src/main/java/tv/orbit/classic/DirectorScoring.kt @@ -286,6 +286,10 @@ internal fun channelScore(e: TitleEvidence, b: Brief, text: ChannelText, links: if (e.type !in b.kinds) return 0.0 to listOf("wrong kind") val withStudios = listOf(e.name, ov, e.studios.orEmpty().joinToString(" ")).joinToString(" ") if (MmaEvent.containsMatchIn(withStudios) && !WrestlingPromotion.containsMatchIn(withStudios)) return 0.0 to listOf("an MMA event: Ring X is professional wrestling, and no channel takes MMA events") + // A wrestling promotion's own event is Ring X's alone (30 November 2026: ECW Wrestlepalooza scored as Premiere cinema on its + // action genre). A promotion's film studio (WWE Studios) makes ordinary films, so only the promotion itself counts. + val promotion = e.studios.orEmpty().any { WrestlingPromotion.containsMatchIn(it) && !Regex("studios|films|pictures", RegexOption.IGNORE_CASE).containsMatchIn(it) } + if (promotion && b.number != 401) return 0.0 to listOf("a wrestling event: Ring X's") if (b.kids && rating in Adult) return 0.0 to listOf("rated $rating") var s = 0.0 val animated = "Animation" in g; val doc = "Documentary" in g @@ -428,7 +432,8 @@ private fun filmIneligible(e: TitleEvidence, b: Brief, g: Set, ov: Strin if (ch == CHRISTMAS_NUMBER && (g intersect OutweighChristmas).isNotEmpty()) return "set at Christmas, but ${(g intersect OutweighChristmas).joinToString()}: not festive family viewing" // An action film needs organised crime at its heart (two signs of it, Fast X has one kingpin); a comedy or romance needs one. val mob = OrganisedCrime.findAll(all).map { it.value.lowercase() }.toSet().size - val lighter = g intersect setOf("Action", "Adventure", "Comedy", "Romance") + // Family too (30 November 2026: Coin Heist, four teens robbing the Mint, isn't the underworld). + val lighter = g intersect setOf("Action", "Adventure", "Comedy", "Romance", "Family") if (ch == SYNDICATE_NUMBER && lighter.isNotEmpty() && mob < (if ((lighter intersect setOf("Action", "Adventure")).isNotEmpty()) 2 else 1)) return "not organised crime: ${lighter.joinToString()} with a crime in it" if (ch == 301 && e.community != null && e.community < 6.5) return "not an event film: its viewers rate it ${e.community}" diff --git a/android/app/src/test/java/tv/orbit/classic/ChairFilmExamplesTest.kt b/android/app/src/test/java/tv/orbit/classic/ChairFilmExamplesTest.kt index eded2cd3..225de611 100644 --- a/android/app/src/test/java/tv/orbit/classic/ChairFilmExamplesTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/ChairFilmExamplesTest.kt @@ -64,4 +64,12 @@ class ChairFilmExamplesTest { assertTrue(n, score(n, WONDER_TV_NUMBER) >= 0.5 && score(n, WONDER_TV_NUMBER) > score(n, 306) && score(n, WONDER_TV_NUMBER) > score(n, 612)) } } + + /** A wrestling event is Ring X's, never flagship cinema; a teen heist isn't organised crime. */ + @Test fun wrestlingEventsAndTeenHeists() { + BuiltInChannels.map { it.number }.filter { it != 401 }.mapNotNull { n -> Briefs.firstOrNull { it.number == n } } + .forEach { assertTrue("ECW on ${it.number}", score("ECW Wrestlepalooza 1998", it.number) == 0.0) } + assertTrue(score("ECW Wrestlepalooza 1998", 401) > 0.0) + assertTrue(score("Coin Heist", SYNDICATE_NUMBER) == 0.0) + } } diff --git a/android/app/src/test/resources/chair-film-examples.jsonl b/android/app/src/test/resources/chair-film-examples.jsonl index 8f3e7b2b..f1389774 100644 --- a/android/app/src/test/resources/chair-film-examples.jsonl +++ b/android/app/src/test/resources/chair-film-examples.jsonl @@ -36,3 +36,5 @@ {"id": "5545855", "type": "Movie", "name": "Togo", "year": 2019, "overview": "The untold true story set in the winter of 1925 that takes you across the treacherous terrain of the Alaskan tundra for an exhilarating and uplifting adventure that will test the strength, courage and determination of one man, Leonhard Seppala, and his lead sled dog, Togo.", "genres": ["Adventure", "Family"], "studios": ["Walt Disney Pictures"], "rating": "PG", "community": 7.9, "taglines": null, "countries": ["United States of America"]} {"id": "5477379", "type": "Movie", "name": "A Knight in Camelot", "year": 1998, "overview": "Yet another variation on Mark Twain's \"A Connecticut Yankee At King Arthur's Court.\" Here, a computer malfunction causes a science researcher to be sent back in time with her laptop, which she uses to amaze the court.", "genres": ["Adventure", "Fantasy", "Comedy", "Family"], "studios": ["Walt Disney Television"], "rating": "TV-G", "community": 4.8, "taglines": ["King Arthur's Round Table will never be the same!"], "countries": ["United States of America"]} {"id": "5452256", "type": "Movie", "name": "Spot Marks the X", "year": 1986, "overview": "A dog trained to be a thief is the only member of a gang of bank robbers who knows where a quarter of a million dollars is hidden.", "genres": ["Family", "Comedy", "Crime"], "studios": ["The Catalina Production Group", "Walt Disney Television"], "rating": "G", "community": 4.8, "taglines": null, "countries": ["Canada", "United States of America"]} +{"id": "5474024", "type": "Movie", "name": "ECW Wrestlepalooza 1998", "year": 1998, "overview": "\"The Franchise\" Shane Douglas defends the ECW World Heavyweight Championship against Al Snow. Long time rivals face off for the ECW Television Championship when Sabu collides with Rob Van Dam. Tommy Dreamer & Sandman join forces to take on The Dudley Boyz. Bam Bam Bigelow battles New Jack. Plus, Justin Credible, Lance Storm, and more!", "genres": ["Action"], "studios": ["Extreme Championship Wrestling (ECW)"], "rating": "R", "community": 6.9, "taglines": null, "countries": ["United States of America"]} +{"id": "5548099", "type": "Movie", "name": "Coin Heist", "year": 2017, "overview": "When a crisis threatens to destroy their high school, four teens hatch a daring plan to raise $10 million. Step one? Breaking into the U.S. Mint.", "genres": ["Family", "Crime"], "studios": ["Adaptive Studios"], "rating": "PG", "community": 4.8, "taglines": null, "countries": ["United States of America"]}