Skip to content

fix: Harbor respects remote streaming server config (#1298) - #1323

Open
HermesYP wants to merge 1 commit into
harborstremio:mainfrom
HermesYP:fix/remote-server-override
Open

HermesYP wants to merge 1 commit into
harborstremio:mainfrom
HermesYP:fix/remote-server-override

Conversation

@HermesYP

Copy link
Copy Markdown

Summary

Fix Harbor ignoring configured remote streaming server and always using local engine.

Changes

  • resolve.ts: Check remote server configuration in stream resolution
  • settings_store.rs: Expose remote server settings to engine
  • torrent_engine.rs: Respect remote server config when initializing

Verification

  • TypeScript and Rust checks pass
  • Backward compatible — local engine works when no remote configured

Closes #1298

…orstremio#1298)

When a remote streaming server URL is configured in Settings, Harbor
now uses it instead of always starting and using the local engine.

- src/lib/streams/resolve.ts: tryTorrentEngine checks for remote server
  URL and routes to tryRemoteStream (builds URLs via createAndListFiles
  + buildTorrentStreamUrl which already target getStremioServerUrl)
  instead of calling the local engine via tryLocalEngine.
- src-tauri/src/settings_store.rs: add read_remote_stream_server_url
  helper to detect remote server config from the settings file.
- src-tauri/src/torrent_engine.rs: ensure_started_on_setup skips
  starting the local engine when a remote streaming server is
  configured.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Wont use remote server, always using local engine

1 participant