0.106.0: story grouping on Orbit 1
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m1s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m46s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-04 19:22:34 +00:00
co-authored by Claude Opus 5.5
parent cef768f5a8
commit c85e1f9200
6 changed files with 28 additions and 8 deletions
+2 -2
View File
@@ -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 }
@@ -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
@@ -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)
@@ -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()) {
@@ -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 })
}
}
+20
View File
@@ -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.