0.103.0: story grouping on Heroes (Stage E, first channel)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,8 +9,8 @@ android {
|
||||
applicationId = "tv.orbit.classic"
|
||||
minSdk = 26
|
||||
targetSdk = 36
|
||||
versionCode = 151
|
||||
versionName = "0.102.0-vortex-idents"
|
||||
versionCode = 152
|
||||
versionName = "0.103.0-heroes-stories"
|
||||
}
|
||||
buildFeatures { compose = true }
|
||||
compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 }
|
||||
|
||||
@@ -199,7 +199,10 @@ internal val SmartChannels = listOf(
|
||||
suggestionRules = SmartChannelRules[it.number].orEmpty(), dayParts = SmartChannelParts[it.number].orEmpty(), shuffleTitles = SmartChannelMixed[it.number].orEmpty(),
|
||||
channelFilms = if (it.number == 401) PpvSunday else emptyList(), tierWeights = SmartChannelTiers[it.number], adaptiveFilmRest = it.number in AdaptiveFilmRestChannels,
|
||||
catalogueScaleHours = if (it.number in CatalogueScaledChannels) CATALOGUE_SCALE_HOURS else null,
|
||||
catalogueScaleFloor = CatalogueScaleFloors[it.number] ?: MIN_CATALOGUE_SCALE) }
|
||||
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)
|
||||
|
||||
/**
|
||||
* 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.102.0\"")
|
||||
connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.103.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.102.0")
|
||||
next.setRequestProperty("User-Agent", "OrbitTV/0.103.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()) {
|
||||
|
||||
@@ -128,8 +128,9 @@ class StoryGroupingTest {
|
||||
assertEquals(run(pool = unmarked, stories = false), run(pool = unmarked, stories = true))
|
||||
}
|
||||
|
||||
@Test fun onlyParadoxGroupsStories() {
|
||||
assertEquals(listOf(106), SmartChannels.filter { it.storyGrouping }.map { it.number })
|
||||
assertTrue(SmartChannels.first { it.number == 106 }.tierWeights != null)
|
||||
@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())
|
||||
assertTrue(SmartChannels.filter { it.storyGrouping }.all { it.tierWeights != null })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user