From 076b431741f3a48f4dfa2881585644602b96bfc2 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Wed, 4 Nov 2026 19:07:51 +0000 Subject: [PATCH] 0.104.0: story grouping on Orbit X 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.104.0.md | 20 +++++++++++++++++++ 6 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 docs/VERIFICATION-0.104.0.md diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 00e81a94..0181f2e7 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 = 152 - versionName = "0.103.0-heroes-stories" + versionCode = 153 + versionName = "0.104.0-orbit-x-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 7943ab73..493932dc 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. */ -private val StoryGroupingChannels get() = setOf(602) +/** 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. */ +private val StoryGroupingChannels get() = setOf(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 788be4a3..ff19e016 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.103.0\"") + connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.104.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 46f04afd..98366081 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.103.0") + next.setRequestProperty("User-Agent", "OrbitTV/0.104.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 6ae791dd..2ecfd466 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 (Stage E, one channel at a time). Grouping works through weighted rotation. - assertEquals(listOf(106, 602), SmartChannels.filter { it.storyGrouping }.map { it.number }.sorted()) + // Paradox (Stage A), then Heroes and Orbit X (Stage E, one channel at a time). Grouping works through weighted rotation. + assertEquals(listOf(106, 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.104.0.md b/docs/VERIFICATION-0.104.0.md new file mode 100644 index 00000000..b8d1c46c --- /dev/null +++ b/docs/VERIFICATION-0.104.0.md @@ -0,0 +1,20 @@ +# 0.104.0: story grouping on Orbit X (Stage E, second channel) + +`StoryGroupingChannels` is now {602, 603}, using the same rule as Paradox and Heroes. + +## 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.103.0 except Orbit X, and Orbit X's committed bookings are unchanged. +- **Orbit X over the four weeks** (1,793 new programmes): + +| | 0.103.0 | 0.104.0 | +|---|---|---| +| Story openers followed by part 2 | 0 | 83 | +| Openers left hanging | 81 | 1 | +| Later parts aired alone | 128 | 1 | +| Same episode again within 7 days | 104 | 104 | + +Each show's share moves by three programmes at most in four weeks. + +APK: `outputs/revision-0.104.0`, signed. Not installed.