From 26d82cf158a0fce893777727ccc5be100784518f Mon Sep 17 00:00:00 2001 From: Pauljd Date: Thu, 5 Nov 2026 15:37:21 +0000 Subject: [PATCH] 0.108.10: keep the 0.108 line's Premiere booking off in the Chair wiring Co-Authored-By: Claude Opus 5.5 (1M context) --- .../main/java/tv/orbit/classic/EmbyConnectionScreen.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt index 5a3ed353..6c01bb42 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt @@ -516,14 +516,7 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea }.onFailure { android.util.Log.w("OrbitSchedule", "director placeFailed=${it.javaClass.simpleName}") } } } }, drop = { choice -> scope.launch(Dispatchers.IO) { runCatching { dropFromChair(scheduleStore, choice.id, choice.title, choice.type, choice.options.firstOrNull()?.number, premiere = choice.firstRun != null) } .onFailure { android.util.Log.w("OrbitSchedule", "director dropFailed=${it.javaClass.simpleName}") }; android.util.Log.i("OrbitSchedule", "director dropped") } }, - premiere = { choice, home -> val active = session - if (active == null) "Not connected, so nothing was placed." else withContext(Dispatchers.IO) { runCatching { - placePremiereFromChair(scheduleStore, active.accountId, choice.id, choice.title, choice.year, home.number) - }.getOrNull() }.let { debut -> - android.util.Log.i("OrbitSchedule", "director premiere home=${home.number} debut=${debut != null}") - if (debut == null) "${choice.title} wasn't placed: it has been booked on Orbit already, or there was no free Friday or Saturday night in the next three weeks." - else "${choice.title} premieres on Orbit Premiere ${java.time.Instant.ofEpochMilli(debut).atZone(java.time.ZoneId.systemDefault()).let { "%s %d %s at %02d:%02d".format(it.dayOfWeek.getDisplayName(java.time.format.TextStyle.FULL, java.util.Locale.UK), it.dayOfMonth, it.month.getDisplayName(java.time.format.TextStyle.FULL, java.util.Locale.UK), it.hour, it.minute) }}, then joins ${home.name}." - } }, + premiere = { _, _ -> "Premiere booking is off until you approve it." }, setLearning = { on -> withContext(Dispatchers.IO) { ChairLearning.set(scheduleStore.learningFile(), on) }; android.util.Log.i("OrbitSchedule", "director learning=$on") }) }, isOn = { scheduledChannels.containsKey(it) }, onSwitch = { programming, on -> setSmartSchedule(programming, on) }, onSuggestions = { openSuggestions(it) }, onSignOut = { job?.cancel(); closeSession(forget = true) }, windingDown = windingDown, onWindDown = { on -> val tots = scheduledChannels[TOTS_NUMBER]