From c85e1f920033102e9100d07b7c26d41925bb5159 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Wed, 4 Nov 2026 19:22:34 +0000 Subject: [PATCH] 0.106.0: story grouping on Orbit 1 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.106.0.md | 20 +++++++++++++++++++ 6 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 docs/VERIFICATION-0.106.0.md diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index d024a20b..ce0ae1bc 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 = 154 - versionName = "0.105.0-vortex-stories" + versionCode = 155 + versionName = "0.106.0-orbit-1-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 78d1609a..bdd6b6cd 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. Vortex sets its own, above. */ -private val StoryGroupingChannels get() = setOf(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 and Orbit 1. Vortex sets its own, above. */ +private val StoryGroupingChannels get() = setOf(101, 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 0321d3db..80b59f83 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.105.0\"") + connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.106.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 8d4cbc37..1f70eceb 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.105.0") + next.setRequestProperty("User-Agent", "OrbitTV/0.106.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 347b039f..0884b139 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 and Vortex (Stage E, one channel at a time). Grouping works through weighted rotation. - assertEquals(listOf(106, 601, 602, 603), SmartChannels.filter { it.storyGrouping }.map { it.number }.sorted()) + // 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()) assertTrue(SmartChannels.filter { it.storyGrouping }.all { it.tierWeights != null }) } } diff --git a/docs/VERIFICATION-0.106.0.md b/docs/VERIFICATION-0.106.0.md new file mode 100644 index 00000000..eb01b532 --- /dev/null +++ b/docs/VERIFICATION-0.106.0.md @@ -0,0 +1,20 @@ +# 0.106.0: story grouping on Orbit 1 (Stage E, fourth channel) + +`StoryGroupingChannels` is now {101, 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.105.0 except Orbit 1, and Orbit 1's committed bookings are unchanged. +- **Orbit 1 over the four weeks** (1,686 new programmes): + +| | 0.105.0 | 0.106.0 | +|---|---|---| +| Story openers followed by part 2 | 0 | 43 | +| Openers left hanging | 28 | 1 | +| Later parts aired alone | 47 | 4 | +| Same episode again within 7 days | 0 | 0 | + +Each show's share moves by two programmes at most. + +APK: `outputs/revision-0.106.0`, signed. Not installed.