Re-pick Plex server address on network change, foreground, and stream failure (dev 36)
The address chosen at sign-in (LAN first) was kept forever, so away from home streams hit a dead LAN address (TLS error) or the relay (503). Store every address plex.tv lists, probe them all bypassing the offline cache, and keep the best one that answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f68aa588b
commit
e02428ab70
7 files changed
+100
-17
No files matched your search
@@ -58,6 +58,7 @@ struct StemifyApp: App {
|
||||
AppActivity.setPhone(p != .background)
|
||||
guard p == .active else { return }
|
||||
AppGraph.shared.eq.refreshRoute()
|
||||
Task.detached { await AppGraph.shared.plex.reroute("foreground") }
|
||||
// Keep downloaded playlists in step with the server, like Plexamp.
|
||||
Task { await AppGraph.shared.downloads.refresh() }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user