Skip to content

Silo plus - #1122

Closed
Pedrod86 wants to merge 21 commits into
Silo-Server:mainfrom
Pedrod86:silo-plus
Closed

Pedrod86 wants to merge 21 commits into
Silo-Server:mainfrom
Pedrod86:silo-plus

Conversation

@Pedrod86

@Pedrod86 Pedrod86 commented Dec 2, 2026 •

Copy link
Copy Markdown

Problem

Closes #NNN

Related issue: #NNN

Validation tasks: #NNN C1

Other clients: Apple Silo-Server/silo-apple#NNN; Roku N/A (reason); Web Silo-Server/silo-server#NNN

A short plain-language summary: what goes wrong, who it affects, and what this
change does about it. Details come after.

Approach

What changed and why this way, and which surfaces and repositories it affects.
Mention an alternative only if a reviewer would ask about it. Do not walk through
the diff.

Validation

One line per kind of check and its result; do not list tests by name. Name required
checks that were not run or did not pass. Include a short output excerpt only when it
explains a failure.

Evidence

Before After

Surface and build:

Risks

Migration, compatibility, security, operational, or release impact, or "None
identified".

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: exact agent harness or application, or "none"
  • Tool(s): exact tool name(s), or "none"
  • Model(s): exact model identifier(s) reported by each tool, or "n/a"
  • Involvement: Fully AI-generated, human verified | AI-assisted | Human-written, AI-reviewed | No AI used
  • Adversarial review: scope, method, findings, and resolutions, or "n/a" when this change does not require independent or adversarial review

Note

Add Silo+ app: Live TV, plugins, themes, and self-updater

Turns the fork into the Silo+ product with a new application ID org.siloserver.silo.plus, rebranded icons, and a new startup splash.

  • Adds a Live TV feature: PluginAppsActivity hosts server plugin pages in a WebView with a JavaScript bridge to native playback, GuideGridView renders a scrollable channel/programme grid, and LiveTvRecents persists the 15 most recently watched channels with generated artwork.
  • Adds a home-screen widget (LiveTvWidget) showing up to 4 recent channels, plus recents sections on the phone and TV home screens.
  • Adds theme support via SiloPlusThemes: 9 palettes, custom CSS color variables, and a ThemeSettingsActivity settings screen; Compose color tokens now read from the active palette.
  • Adds SiloPlusUpdater, which checks GitHub releases every 6 hours, and two GitHub Actions workflows for weekly upstream sync and phone/TV APK builds.
  • Behavioral Change: the phone and TV application IDs change to org.siloserver.silo.plus, so installs no longer upgrade the original org.siloserver.silo package; the profile menu now always shows the feature group with Live TV and Apps entries.

Macroscope summarized 6aeacb6.

…apps

Adds an Apps row to the phone and TV profile menus. It lists the server's
user-navigable plugin routes (GET /api/v2/settings/plugins) and opens the
chosen one in a WebView signed in with the server's plugin launch cookie
(POST /api/v2/auth/plugin-launch). Builds as org.siloserver.silo.plus
("Silo Plus") so it installs next to the official app, with a workflow that
builds signed phone and TV APKs from the silo-plus branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Opens the Xtream IPTV plugin's page directly; Back leaves it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Media3 player started from the plugin page (SiloPlus JS bridge): channel
zapping (D-pad, channel keys, number entry), hardware/software/auto video
decoding, volume, picture-in-picture, aspect, TS/HLS stream choice, now/next
from the plugin's EPG, and a Sports Hub live-score ticker overlay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
…e volume property

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Adds the + to the phone and TV wordmarks, the TV mark, the server icon and
both startup splash videos (fades in once the wordmark settles). The native
player hides the controller once playback is ready and never shows a
suppressed-playback play button or buffering spinner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
On TV the Media3 controller could keep focus and leave its pause button on
screen. It is now enabled only while OK has opened the controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
…o, sleep, last channel

- Back (or the Guide key) from a live channel opens a TV guide: channels
  with now/next and progress, programme details, and the channel playing on
  in a small window. OK tunes; Back from the guide leaves Live TV.
- Auto frame rate using Silo's RefreshRateMatcher / HdrDisplayController
  (On, or On + resolution; default On for TV). Frame rate comes from the
  stream or is measured from frame timestamps.
- Audio and subtitle track choice, stream info (resolution, fps, codec,
  hardware/software decoder, display mode, buffer), sleep timer, last
  channel (button and LAST key), and backed-off automatic reconnects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
- The player is singleTask in its own task: picking another channel reuses
  it (onNewIntent) instead of starting a second stream, and reopening Live
  TV brings a PiP player back to full screen.
- Streams are released as soon as the player finishes, when its PiP window
  is closed, and while it sits in the background (restarted on return).
- PiP window gets previous/next channel (and play/pause for files) actions.
- Guide: Back once shows a hint, twice leaves; OK on the playing channel
  returns to full screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
The player records each live channel it tunes (up to 15, newest first) with
a poster card drawn from the channel logo. Home shows them as a collection
row; a card opens the channel in the Live TV player, with up/down and the
guide going through the recent channels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Nine colour themes back the app's colour constants and Material scheme, so
every screen (Home, libraries, details, settings) follows the choice at
once. Custom CSS: :root colour variables (--page, --card, --accent, --text,
...) override the theme in the app, and the stylesheet plus the theme's
colours are injected into plugin pages. The default theme keeps Silo's
exact colours. Phone only; the TV app is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
…en widget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
… reachable guide buttons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VeUQUsJ9XMSCd7Ta9X4NP
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Thanks for the pull request. Silo takes pull requests from people who have had one merged in a Silo repository, or whom a maintainer has asked for one, so this one is closed without review. That isn't a judgment of the work. If a maintainer asked you for it, they will reopen it.

If the problem still matters, open an issue for it and link this pull request; a maintainer may reopen it or use the code as a reference. Feature ideas go in Discussions → Ideas. The contributing guide explains why.

@github-actions github-actions Bot closed this Dec 2, 2026
@silo-kody

silo-kody Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown

Visible changes lack evidence; the Evidence section still contains the empty template table.

  • Apps and Live TV navigation plus plugin-page browsing in PluginAppsActivity.kt, ProfileMenu.kt, TvTopMenuBar.kt, and TvMainShell.kt — Android phone, tablet, foldable folded and open, and Android TV; add before-and-after captures for each affected device, plus a short recording for the navigation flow and TV focus behavior.
  • Native Live TV player, guide/grid, playback controls, catch-up, and sports views in LiveTvPlayerActivity.kt and GuideGridView.kt — phone, tablet, foldable folded and open, and Android TV; add before-and-after captures on each, with recordings for multi-step playback and remote focus movement.
  • Recently watched channels and artwork in LiveTvRecents.kt, the phone and TV Home screens, and the phone widget — phone, tablet, foldable folded and open, and TV for the Home row; add before-and-after captures using the same channel data. Also capture the widget on a phone.
  • Theme selection, custom CSS, and recolored app screens in ThemeSettingsActivity.kt, SiloPlusThemes.kt, and Color.kt — phone, tablet, and foldable folded and open; add before-and-after captures on each.
  • Silo+ update entry points and update prompts in SiloPlusUpdater.kt, the main activities, and Settings/profile menus — phone, tablet, foldable folded and open, and TV; add before-and-after captures for the affected menu/settings surfaces.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

Comment on lines +97 to +98
- name: Publish the next Silo+ release
if: steps.merge.outputs.changed == 'true' && (github.event_name == 'schedule' || inputs.release != 'false')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

A failed release cannot be retried after the sync branch is pushed

A dispatch failure or test-signed build can leave a sync permanently unreleased because steps.merge.outputs.changed is false on subsequent runs. Track publication independently of merge state so release dispatch can be retried after a successful push.

Prompt for LLM
File .github/workflows/silo-plus-sync.yml, lines 97-98:

A failed release cannot be retried after the sync branch is pushed

The branch is pushed before release dispatch, but subsequent runs skip publication when upstream is already merged, so a transient dispatch failure or a test-signed build leaves that sync permanently unreleased. Track publication independently of merge state and allow the release step to retry after a successful push.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

if (!r.poster.contains("/$ART_PREFIX")) runCatching { File(r.poster.removePrefix("file://")).delete() }
r.copy(poster = art.first, backdrop = art.second)
}
state.value = updated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules critical

Artwork migration can publish an obsolete recents list

Publishing updated can undo a channel recording or clear that occurred during artwork migration. Capture a list generation before rebuilding, then check it under a shared lock before publishing and discard or reconcile stale results.

Also found in:

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt:274-274

Kody rule violation: Revalidate asynchronous ownership before publication, launch, and cleanup

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, line 273:

Artwork migration can publish an obsolete recents list

The artwork migration rebuilds the list on a background thread, so a channel can be recorded or the list cleared after the snapshot at line 255. Publishing `updated` then restores the obsolete list. Capture a list generation before rebuilding and check it under a shared lock immediately before publishing; discard or reconcile the result if ownership changed.

**Also found in:**
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt:274-274`

Kody rule violation: [Revalidate asynchronous ownership before publication, launch, and cleanup](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/8ee8ffaf-7856-4c08-a084-f52e4c5e5f57?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +273 to +274
state.value = updated
write(context, updated)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug critical

Artwork migration overwrites concurrent changes to recent channels

Recording or clearing a channel during artwork migration can lose the change when state.value is replaced with a stale snapshot. Merge migrated artwork into the current list under synchronization.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, lines 273-274:

Artwork migration overwrites concurrent changes to recent channels

Migration snapshots the recents list on a background thread and later overwrites the current state, so a channel recorded or cleared while artwork is being redrawn is lost or restored. Merge migrated artwork into the current list under synchronization rather than replacing it with the stale snapshot.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +188 to +192
fun specFor(context: Context, id: String, guide: Boolean): String? {
ensureLoaded(context)
val list = state.value
val picked = list.firstOrNull { it.id == id } ?: return null
val same = list.filter { it.base == picked.base }.sortedWith(compareBy<Recent>({ if (it.num > 0) it.num else Long.MAX_VALUE }, { it.name.lowercase() }))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

Recent channels from different servers resolve to the wrong server

Channels on different servers can share an ID, causing a selection to open the wrong channel. Preserve the server base in card and widget identity, and match both fields in specFor.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, lines 188-192:

Recent channels from different servers resolve to the wrong server

Channels from different servers can share an ID, but cards and widget tiles resolve only the first matching ID, so selecting the older server's channel opens the newer server's channel instead. Preserve the server base as part of the card and widget identity and use both fields in `specFor`.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +215 to +220
private fun artFor(context: Context, id: String, name: String, num: Long, iconUrl: String?): Pair<String, String> {
val dir = artDir(context)
val safe = safeId(id)
val posterFile = File(dir, "${ART_PREFIX}$safe.png")
val backdropFile = File(dir, "bd2_$safe.jpg")
val logoFile = File(dir, "logo_$safe.png")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

Channel artwork collides across servers and sanitized IDs

Channels on different servers or with IDs that sanitize identically can reuse each other's artwork. Derive filenames from a collision-resistant hash of the server and full channel ID instead of safeId.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, lines 215-220:

Channel artwork collides across servers and sanitized IDs

Artwork filenames omit the server and normalize distinct channel IDs to the same string, so channels with matching IDs or colliding sanitized IDs reuse each other's posters and backdrops. Derive filenames from a collision-resistant hash of the server and full channel ID.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +117 to +119
val art = withContext(Dispatchers.IO) { artFor(app, id, name, num, iconUrl) }
val entry = Recent(id, name, num, base, sports, art.first, System.currentTimeMillis(), art.second)
val list = listOf(entry) + state.value.filter { it.id != id || it.base != base }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

Slow artwork downloads reorder recently watched channels

A slow artwork download can cause an earlier channel to appear ahead of the one currently playing. Capture the tune time before artFor and use it to order or discard completed records.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, lines 117-119:

Slow artwork downloads reorder recently watched channels

Rapid channel changes launch independent recordings, so a slow artwork download for an earlier channel can finish last and put that channel ahead of the one currently playing. Capture the tune time before loading artwork and order or discard completed records using that time.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +244 to +245
private fun deleteArt(r: Recent) {
listOf(r.poster, r.backdrop).filter { it.isNotBlank() }.forEach { runCatching { File(it.removePrefix("file://")).delete() } }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Performance medium

Evicted channels leave an unbounded collection of logo files

Evicting or clearing channels leaves downloaded logo_*.png files in app storage indefinitely. Delete each corresponding logo when its channel is no longer referenced.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/LiveTvRecents.kt, lines 244-245:

Evicted channels leave an unbounded collection of logo files

Evicting or clearing channels deletes only the poster and backdrop, leaving every downloaded `logo_*.png` permanently in app storage as users tune new channels. Delete the corresponding logo when its channel is no longer referenced.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

private suspend fun launchCookie(): String {
val res = client.post("/api/v2/auth/plugin-launch")
if (!res.status.isSuccess()) {
val msg = runCatching { JSONObject(res.bodyAsText()).optString("detail") }.getOrNull().orEmpty()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules high

Reading a sign-in refusal can swallow coroutine cancellation

runCatching converts cancellation during bodyAsText() into an ordinary sign-in failure. Rethrow CancellationException while reading the refusal body.

Also found in:

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:153-153
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/PluginSession.kt:36-36
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:163-163
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:72-72

Kody rule violation: Preserve coroutine cancellation and protect accepted saves

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/PluginAppsActivity.kt, line 298:

Reading a sign-in refusal can swallow coroutine cancellation

Rethrow `CancellationException` while reading the refusal body. `runCatching` currently converts cancellation during `bodyAsText()` into an empty message, after which the operation reports an ordinary sign-in failure instead of propagating cancellation.

**Also found in:**
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:153-153`
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/PluginSession.kt:36-36`
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:163-163`
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:72-72`

Kody rule violation: [Preserve coroutine cancellation and protect accepted saves](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/7433d038-488a-444f-83cf-84512496c2dc?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Suggested code:

val msg = try { JSONObject(res.bodyAsText()).optString("detail") } catch (e: CancellationException) { throw e } catch (_: Exception) { "" }

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +351 to +352
CookieManager.getInstance().setAcceptThirdPartyCookies(wv, false)
wv.addJavascriptInterface(Bridge(), "SiloPlus")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Security high

Untrusted embedded frames can invoke the native player bridge

An untrusted iframe can use play to initiate native requests to URLs accessible from the device. Restrict the bridge to trusted origins and validate player URLs and resolver paths before launching playback.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/PluginAppsActivity.kt, lines 351-352:

Untrusted embedded frames can invoke the native player bridge

The JavaScript bridge is exposed to embedded frames, while `play` accepts their arbitrary player specification and starts native network requests; an untrusted iframe in a plugin page can therefore initiate requests to URLs accessible from the device. Restrict the bridge to trusted origins and validate player URLs and resolver paths before launching playback.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

addView(bar)
}
val dialog = AlertDialog.Builder(activity).setView(box).setCancelable(false).show()
MainScope().launch {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules high

Update downloads are not owned by the activity lifecycle

The standalone MainScope can retain a destroyed activity and continue updating its views or starting installation. Use a lifecycle-owned scope and dismiss the dialog on every completion path.

Also found in:

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:71-71

Kody rule violation: Make lifecycle cleanup own listeners, child requests, and fading audio

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt, line 152:

Update downloads are not owned by the activity lifecycle

Give the download and installation work an explicit lifecycle owner, cancel it when that owner is disposed, and dismiss its dialog on every completion path. The standalone scope can retain a destroyed activity and continue updating its views or starting installation.

**Also found in:**
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt:71-71`

Kody rule violation: [Make lifecycle cleanup own listeners, child requests, and fading audio](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/6e497f8b-d3f2-4c41-9567-2a148b2d5184?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +87 to +88
private fun latest(tv: Boolean): Release? {
val conn = URL("https://api.github.com/repos/$REPO/releases/latest").openConnection() as HttpURLConnection

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

A non-Plus latest release hides available Silo Plus updates

GitHub's latest-release endpoint can return an ordinary Silo release, causing the check to miss a newer plus-v release. List releases and select the newest published plus-v release instead.

Prompt for LLM
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/plugins/SiloPlusUpdater.kt, lines 87-88:

A non-Plus latest release hides available Silo Plus updates

GitHub's latest-release endpoint returns the latest release of any kind, so an ordinary Silo release causes this check to return null even when a newer `plus-v` release exists. List releases and select the newest published `plus-v` release instead.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +112 to +113
val live = org.siloserver.silo.common.plugins.LiveTvRecents.section(liveRecents)
if (live != null && arranged.isNotEmpty()) listOf(live) + arranged else arranged

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

TV Home hides recent channels when no server sections are visible

An empty arranged list discards the live-recents row even when channels exist. Add live whenever it is non-null, independently of the server sections.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/home/TvHomeScreen.kt, lines 112-113:

TV Home hides recent channels when no server sections are visible

When all server Home sections are hidden or absent, `arranged` is empty and the live-recents row is discarded even if channels exist. Add the live row whenever it is non-null, independently of the server sections.

Suggested code:

if (live != null) listOf(live) + arranged else arranged

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXXL 3000+ added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants