diff --git a/android/app/src/main/java/tv/orbit/classic/DriveInEvents.kt b/android/app/src/main/java/tv/orbit/classic/DriveInEvents.kt index 6e1e4aba..03cb5c98 100644 --- a/android/app/src/main/java/tv/orbit/classic/DriveInEvents.kt +++ b/android/app/src/main/java/tv/orbit/classic/DriveInEvents.kt @@ -62,7 +62,24 @@ internal val DriveInEvents: List = listOf( EventFilm("First Blood", 1982, "tt0083944"), EventFilm("Rambo: First Blood Part II", 1985, "tt0089880"), EventFilm("Rambo III", 1988, "tt0095956"))), DriveInEvent("christmas", "Christmas at the Drive-In", night("2026-12-19"), 19, 0, listOf( EventFilm("It's a Wonderful Life", 1946, "tt0038650"), EventFilm("Home Alone", 1990, "tt0099785"), EventFilm("Elf", 2003, "tt0319343")), - "drivein.christmas")) + "drivein.christmas")) + EncoreSaturdays + + +/** + * Encore Saturday (Paul, 23 November 2026): a weekly music night at the Drive-In, a music biopic, a concert or music + * documentary, then a cult musical or music comedy, on Saturdays with no other event. Drive-In events already booked or + * approved keep priority: see [allDriveInEvents]. + */ +internal const val ENCORE_KEY = "encore-" +internal val EncoreSaturdays: List get() = listOf( + DriveInEvent("encore-2026-12-26", "Encore Saturday", night("2026-12-26"), 20, 0, listOf(EventFilm("Bohemian Rhapsody", 2018, "tt1727824"), EventFilm("Stop Making Sense", 1984, "tt0088178"), EventFilm("This Is Spinal Tap", 1984, "tt0088258"))), + DriveInEvent("encore-2027-01-02", "Encore Saturday", night("2027-01-02"), 20, 0, listOf(EventFilm("Rocketman", 2019, "tt2066051"), EventFilm("The Last Waltz", 1978, "tt0077838"), EventFilm("Tommy", 1975, "tt0073812"))), + DriveInEvent("encore-2027-01-09", "Encore Saturday", night("2027-01-09"), 20, 0, listOf(EventFilm("Walk the Line", 2005, "tt0358273"), EventFilm("O Brother, Where Art Thou?", 2000, "tt0190590"))), + DriveInEvent("encore-2027-01-16", "Encore Saturday", night("2027-01-16"), 20, 0, listOf(EventFilm("The Commitments", 1991, "tt0101605"), EventFilm("A Hard Day's Night", 1964, "tt0058182"), EventFilm("Almost Famous", 2000, "tt0181875"))), + DriveInEvent("encore-2027-01-23", "Encore Saturday", night("2027-01-23"), 20, 0, listOf(EventFilm("Ray", 2004, "tt0350258"), EventFilm("Searching for Sugar Man", 2012, "tt2125608"), EventFilm("Purple Rain", 1984, "tt0087957"))), + DriveInEvent("encore-2027-01-30", "Encore Saturday", night("2027-01-30"), 20, 0, listOf(EventFilm("Elvis", 2022, "tt3704428"), EventFilm("Gimme Shelter", 1970, "tt0065780"), EventFilm("Jesus Christ Superstar", 1973, "tt0070239"))), + DriveInEvent("encore-2027-02-06", "Encore Saturday", night("2027-02-06"), 20, 0, listOf(EventFilm("24 Hour Party People", 2002, "tt0274309"), EventFilm("Supersonic", 2016, "tt5213534"), EventFilm("Cabaret", 1972, "tt0068327"))), + DriveInEvent("encore-2027-02-13", "Encore Saturday", night("2027-02-13"), 20, 0, listOf(EventFilm("Straight Outta Compton", 2015, "tt1398426"), EventFilm("Amy", 2015, "tt2870648"), EventFilm("School of Rock", 2003, "tt0332379")))) /** What reading an event film found: the film to book, or why it can't be (for the playback notes, never the screen). */ internal class EventFilmCheck(val film: PoolSeries?, val reason: String) diff --git a/android/app/src/main/java/tv/orbit/classic/EventIdeas.kt b/android/app/src/main/java/tv/orbit/classic/EventIdeas.kt index bac6316e..8be5ba68 100644 --- a/android/app/src/main/java/tv/orbit/classic/EventIdeas.kt +++ b/android/app/src/main/java/tv/orbit/classic/EventIdeas.kt @@ -250,7 +250,9 @@ internal object ApprovedDriveInEvents { } /** The curated events this library has ([CuratedDriveInEvents]) and the ideas you've approved: every Drive-In event. */ -internal fun allDriveInEvents(): List = CuratedDriveInEvents.list + ApprovedDriveInEvents.list +// Encore Saturdays come after every other event, so an event already approved for the same evening keeps it (Paul, 23 November 2026). +internal fun allDriveInEvents(): List = CuratedDriveInEvents.list.filterNot { it.key.startsWith(ENCORE_KEY) } + ApprovedDriveInEvents.list + + CuratedDriveInEvents.list.filter { it.key.startsWith(ENCORE_KEY) } /** The proposal history: every idea shown, when, and what you decided. Kept for explainable learning. */ internal object EventIdeaHistory { diff --git a/android/app/src/test/java/tv/orbit/classic/DriveInEventsTest.kt b/android/app/src/test/java/tv/orbit/classic/DriveInEventsTest.kt index 317d2127..decee05f 100644 --- a/android/app/src/test/java/tv/orbit/classic/DriveInEventsTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/DriveInEventsTest.kt @@ -182,7 +182,8 @@ class DriveInEventsTest { } @Test fun theApprovedTenAreAsAgreed() { - assertEquals(10, DriveInEvents.size) + // The ten of 4 November 2026, and Encore Saturday's eight (23 November 2026). + assertEquals(10, DriveInEvents.count { !it.key.startsWith(ENCORE_KEY) }); assertEquals(18, DriveInEvents.size) assertEquals(DriveInEvents.size, DriveInEvents.map { it.evening }.distinct().size) assertTrue(DriveInEvents.all { it.presentation.isEmpty() || it.presentation in DriveInTakeovers }) assertEquals("Arnold Schwarzenegger", DriveInEvents.single { it.key == "arnie" }.person) diff --git a/android/app/src/test/java/tv/orbit/classic/EncoreTest.kt b/android/app/src/test/java/tv/orbit/classic/EncoreTest.kt new file mode 100644 index 00000000..0488cb1f --- /dev/null +++ b/android/app/src/test/java/tv/orbit/classic/EncoreTest.kt @@ -0,0 +1,30 @@ +package tv.orbit.classic + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertTrue +import org.junit.Test +import java.time.DayOfWeek +import java.time.LocalDate + +/** Encore Saturday (Paul, 23 November 2026): eight music nights at the Drive-In, never in place of another event. */ +class EncoreTest { + @Test fun eightSaturdaysFromBoxingDayClearOfTheOtherEvents() { + assertEquals(8, EncoreSaturdays.size) + assertEquals(LocalDate.of(2026, 12, 26), EncoreSaturdays.first().evening) + assertTrue(EncoreSaturdays.all { it.evening.dayOfWeek == DayOfWeek.SATURDAY && it.hour == 20 && it.key.startsWith(ENCORE_KEY) }) + val others = DriveInEvents.filterNot { it.key.startsWith(ENCORE_KEY) }.map { it.evening }.toSet() + assertTrue(EncoreSaturdays.none { it.evening in others }) + EncoreSaturdays.flatMap { it.films }.forEach { assertTrue(it.title, Regex("tt\\d+").matches(it.imdb)) } + assertTrue(EncoreSaturdays.first().films.map { it.title } == listOf("Bohemian Rhapsody", "Stop Making Sense", "This Is Spinal Tap")) + } + + @Test fun anEventAlreadyApprovedForTheEveningKeepsIt() { + val encore = EncoreSaturdays.first() + val approved = DriveInEvent("idea-x", "Monster Takeover", encore.evening, 19, 0, emptyList()) + val before = CuratedDriveInEvents.list to ApprovedDriveInEvents.list + try { + CuratedDriveInEvents.list = listOf(encore); ApprovedDriveInEvents.list = listOf(approved) + assertEquals("idea-x", allDriveInEvents().first { it.evening == encore.evening }.key) + } finally { CuratedDriveInEvents.list = before.first; ApprovedDriveInEvents.list = before.second } + } +} diff --git a/android/app/src/test/java/tv/orbit/classic/PortabilityTest.kt b/android/app/src/test/java/tv/orbit/classic/PortabilityTest.kt index 4bd028cb..3855c493 100644 --- a/android/app/src/test/java/tv/orbit/classic/PortabilityTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/PortabilityTest.kt @@ -40,7 +40,8 @@ class PortabilityTest { } @Test fun curatedEventsFindExactlyPaulsItemsAndKeepTheSavedSignature() { - val found = resolveDriveInEvents(DriveInEvents, PaulsEventCopies) + // The ten approved on 4 November 2026; Encore Saturday's eight (23 November) aren't in this fixture. + val found = resolveDriveInEvents(DriveInEvents.filterNot { it.key.startsWith(ENCORE_KEY) }, PaulsEventCopies) assertEquals(10, found.events.size); assertTrue(found.missing.isEmpty()) // The same items as before the change, film for film, so nothing on his box reads, books or plans differently. assertEquals(PaulsSavedEventSignature, eventSignature(found.events, PaulsEventCopies))