Repository navigation
Replies: 4 comments
|
1. Server and web player The server already records who added a stored subtitle:
Tests
On my server
The patch is attached: silo-server-4716.patch. It was made with |
|
2. Apple apps (iPhone, iPad, Mac and Apple TV share the player code, so this is one change) The app already receives
A second fix, for a bug that exists without this idea. An episode that starts with no subtitles at all leaves Auto unresolved ( On devices, a test build against my server (975bbf4 plus the server change), my profile (Bulgarian, Auto), an episode with no subtitles. Each time: an upload from a second account, then one from mine, then I turned subtitles off by hand, then another upload from mine.
When my upload came on, the iPhone showed a black frame with a spinner for under a second and the iPad blinked very briefly. The server log shows a Tests
Tested on silo-apple 7e6fefd. The patch is attached: silo-apple-4716.patch. It was made with |
|
3. Android apps (the TV app Both apps also receive
On a device: NVIDIA Shield (Android TV), a debug build of the TV app with its own application ID so it sat next to the store app, against my server (975bbf4 plus the server change), same profile and episode as on the Apple devices.
The Shield paused briefly not only when my upload came on but also on the two uploads that stayed off. That's the app rebuilding its media item for every added subtitle, which happens without this change too; details in the last comment. I don't have an Android phone, so the phone app is tested by unit tests only. Tests: Tested on silo-android 61a4bf1. The patch is attached: silo-android-4716.patch. It was made with |
|
4. All devices at a glance, as released and with the change Both tests use my profile with Bulgarian subtitles and behavior Auto, an episode with no subtitles and no per-series subtitle setting. The uploaded track is Bulgarian. As released (23-24 November, official server build 2972, commit 3b2b321, the apps as they come from the store, no change of mine): I add the track while the episode plays and touch nothing.
A second account's English track did not come on on the Apple TV, the Shield or in the web player: the profile's language decides, not who added it. With the change (my server 975bbf4 plus the server change, the web player also on bd40bd9 plus the change): no input from me except turning subtitles off by hand at step three.
So as released, the web player and the Android TV app never turn on a track that arrives during playback, and the Apple apps turn on any account's. With the change, all of them turn on only the viewer's own. Tests with the change
The Apple runs had the scheme's App Region set to United States; comment 2 explains why. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
My profile asks for Bulgarian subtitles, behavior Auto. Most of what I watch has no Bulgarian track, so next to Silo I run a companion tool of my own, SubStation, together with Bazarr. Pressing play is all it takes to set the whole chain going:
POST /api/v2/subtitles/upload, using my account's key. When a site has a Bulgarian subtitle, it's in Silo within seconds of pressing play (9 s in one of my runs).So nobody is at a keyboard when the subtitle arrives. I'm on the couch with a remote, and the upload comes from the tool through the API, not from the player's Upload button. Since #2610 the subtitle shows up in the track list straight away, in every client, which is great. On Android TV and in the web player it never comes on by itself, though. Each time I have to open the subtitle menu and pick it: with the mouse in the web player, with the remote on an Android TV box. The whole point is to press play and just watch, with the subtitles starting a few seconds later on their own. Instead I wait for the upload, open the menu and pick the track, and each of those steps pulls me out of what I'm watching.
The Apple apps are different, and not in a way that's consistent with the docs. I tried the released versions on an Apple TV, an iPhone and an iPad: with Auto and a Bulgarian profile, a Bulgarian subtitle that arrives during playback comes on by itself, whoever added it, so a track another account uploads is turned on too. The table in comment 4 has every client, as released and with my change.
I first raised this for the web player in #3918. Since then I've built it for the Apple and Android apps as well and tried it on each kind of device, so this post replaces #3918 with the whole picture. I'm closing that one and pointing it here.
Who it affects
Anyone who watches with subtitles in a language their files often don't carry. Bulgarian is only my example: the same goes for someone in Greece, Poland, Hungary, Romania, Israel or Brazil watching English-language films and series, or for anyone learning a language through what they watch. Whenever the subtitle has to be downloaded, translated or uploaded after pressing play (a provider download, an upload, or a companion tool like mine), it arrives a few seconds into playback, and today it waits in the menu on Android TV and in the web player. It matters most on TVs, where finding and picking a track with a remote is the slow part.
Households that share a server keep what #2610 gives them: a track that someone else's account added still never changes what a viewer has on. The Apple apps as released don't keep that in this one case, since they turn on another account's Bulgarian track too (see above). With this change they do.
Current workaround
Pick the track by hand, every time, on every device.
Proposed behavior
When a subtitle that the viewer's own account downloaded or uploaded arrives during playback, while no subtitle is on and the viewer hasn't chosen one, the player treats it as if it had been there when playback started and lets the profile's subtitle rules decide. With Auto that means it comes on unless the audio is already in the profile's language; with Off only forced tracks would.
It never replaces a subtitle that's on. A viewer who turned subtitles off by hand keeps them off, as #1160 AC4 asks. A track another account added is only offered, never selected, in every client, which is what
docs/subtitles-api.mdsays players do ("must not select it").The same in every client: the web player and the Android apps (TV and phone) get this, and the Apple apps (iPhone, iPad, Mac, Apple TV) already do it, with one difference: another account's track stays only offered.
I have this running on my own server and in all of those clients. The changes, their tests and what I saw on each device are in the comments below; they apply cleanly on today's main of silo-server, silo-apple and silo-android.
Alternatives considered
AI harness
Claude Code (Claude desktop app)
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated, human verified
Independent or adversarial review
n/a
Confirmations
All reactions