From 70fa2e298513c00fbe3777814a8cf621561987e0 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Wed, 4 Nov 2026 19:26:32 +0000 Subject: [PATCH] 0.107.0: story grouping on Evidence Co-Authored-By: Claude Opus 5.5 (1M context) --- android/app/build.gradle.kts | 4 ++-- .../java/tv/orbit/classic/ChannelSchedule.kt | 4 ++-- .../main/java/tv/orbit/classic/EmbyClient.kt | 2 +- .../tv/orbit/classic/SecureMediaDataSource.kt | 2 +- .../tv/orbit/classic/StoryGroupingTest.kt | 4 ++-- docs/VERIFICATION-0.107.0.md | 23 +++++++++++++++++++ 6 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 docs/VERIFICATION-0.107.0.md diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index ce0ae1bc..e6ba7eef 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -9,8 +9,8 @@ android { applicationId = "tv.orbit.classic" minSdk = 26 targetSdk = 36 - versionCode = 155 - versionName = "0.106.0-orbit-1-stories" + versionCode = 156 + versionName = "0.107.0-evidence-stories" } buildFeatures { compose = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 } diff --git a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt index bdd6b6cd..2dfefdac 100644 --- a/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt +++ b/android/app/src/main/java/tv/orbit/classic/ChannelSchedule.kt @@ -201,8 +201,8 @@ internal val SmartChannels = listOf( catalogueScaleHours = if (it.number in CatalogueScaledChannels) CATALOGUE_SCALE_HOURS else null, catalogueScaleFloor = CatalogueScaleFloors[it.number] ?: MIN_CATALOGUE_SCALE, storyGrouping = it.number in StoryGroupingChannels) } -/** Living Network Stage E: story grouping beyond Paradox, one channel at a time. Heroes first (4 November 2026): 119 story parts a week, none booked together; then Orbit X and Orbit 1. Vortex sets its own, above. */ -private val StoryGroupingChannels get() = setOf(101, 602, 603) +/** Living Network Stage E: story grouping beyond Paradox, one channel at a time. Heroes first (4 November 2026): 119 story parts a week, none booked together; then Orbit X, Orbit 1 and Evidence. Vortex sets its own, above. */ +private val StoryGroupingChannels get() = setOf(101, 107, 602, 603) /** * Where a short series must keep at least half its tier's weight, so the hybrid trims its weekly repeats without cutting its diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt index 80b59f83..4e92983f 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt @@ -66,7 +66,7 @@ internal class HttpsEmbyTransport(internal val deviceId: String = UUID.randomUUI connection.connectTimeout = 10_000 connection.readTimeout = request.readTimeoutMs ?: if (request.path == "/Sessions/Logout") 5_000 else 15_000 connection.setRequestProperty("Accept", "application/json") - connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.106.0\"") + connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.107.0\"") request.token?.let { connection.setRequestProperty("X-Emby-Token", it) } if (request.method == "POST") { val bytes = request.body.orEmpty().toByteArray(Charsets.UTF_8) diff --git a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt index 1f70eceb..177a4d0b 100644 --- a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt +++ b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt @@ -33,7 +33,7 @@ internal class SecureMediaDataSource(private val session: EmbySampleSession) : B next.instanceFollowRedirects = false next.connectTimeout = 10_000 next.readTimeout = 20_000 - next.setRequestProperty("User-Agent", "OrbitTV/0.106.0") + next.setRequestProperty("User-Agent", "OrbitTV/0.107.0") next.setRequestProperty("Accept-Encoding", "identity") session.mediaHeaders(address).forEach { (key, value) -> next.setRequestProperty(key, value) } if (dataSpec.position != 0L || dataSpec.length != C.LENGTH_UNSET.toLong()) { diff --git a/android/app/src/test/java/tv/orbit/classic/StoryGroupingTest.kt b/android/app/src/test/java/tv/orbit/classic/StoryGroupingTest.kt index 0884b139..48d14062 100644 --- a/android/app/src/test/java/tv/orbit/classic/StoryGroupingTest.kt +++ b/android/app/src/test/java/tv/orbit/classic/StoryGroupingTest.kt @@ -129,8 +129,8 @@ class StoryGroupingTest { } @Test fun onlyApprovedChannelsGroupStories() { - // Paradox (Stage A), then Heroes, Orbit X, Vortex and Orbit 1 (Stage E, one channel at a time). Grouping works through weighted rotation. - assertEquals(listOf(101, 106, 601, 602, 603), SmartChannels.filter { it.storyGrouping }.map { it.number }.sorted()) + // Paradox (Stage A), then Heroes, Orbit X, Vortex, Orbit 1 and Evidence (Stage E, one channel at a time). Grouping works through weighted rotation. + assertEquals(listOf(101, 106, 107, 601, 602, 603), SmartChannels.filter { it.storyGrouping }.map { it.number }.sorted()) assertTrue(SmartChannels.filter { it.storyGrouping }.all { it.tierWeights != null }) } } diff --git a/docs/VERIFICATION-0.107.0.md b/docs/VERIFICATION-0.107.0.md new file mode 100644 index 00000000..985c0d10 --- /dev/null +++ b/docs/VERIFICATION-0.107.0.md @@ -0,0 +1,23 @@ +# 0.107.0: story grouping on Evidence (Stage E, fifth channel) + +`StoryGroupingChannels` is now {101, 107, 602, 603}. Vortex sets its own flag. + +## Checks + +- 467 unit tests run, 0 failures; lint clean. +- **Four-week replay** from the box's plans and pools at 18:27 today. Every fingerprint is identical to 0.106.0 except Evidence, and Evidence's committed bookings are unchanged. +- **Evidence over the four weeks** (787 → 789 new programmes): + +| | 0.106.0 | 0.107.0 | +|---|---|---| +| Story openers followed by part 2 | 0 | 14 | +| Openers left hanging | 15 | 3 | +| Later parts aired alone | 24 | 5 | +| Same episode again within 7 days | 0 | 0 | + +**The 8 parts left apart are the library's own data, not the rule:** +- **Both parts in one file:** A Touch of Frost's Line of Fire, two Dalziel and Pascoe stories and a Monk episode. The titles say "(1), (2)", so each plays complete as one programme. +- **Crossovers:** two NCIS openers and a Law & Order opener continue on another show. +- **Unnumbered part 1:** a Criminal Minds part 2 whose part 1 isn't numbered as one. + +APK: `outputs/revision-0.107.0`, signed. Not installed.