Skip to content

Fix P2P streams not showing on some clients (#111) - #118

Merged
peterdsp merged 1 commit into
mainfrom
fix/p2p-dht-source
Aug 5, 2026
Merged

Fix P2P streams not showing on some clients (#111)#118
peterdsp merged 1 commit into
mainfrom
fix/p2p-dht-source

Conversation

@peterdsp

@peterdsp peterdsp commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add explicit dht:<infoHash> source entry to P2P stream objects
  • Some Stremio clients require this to enable DHT peer discovery — without it, streams are returned by the API but silently dropped by the client

Root cause

The buildSources() function only returned tracker: prefixed URLs. Torrentio (which works on the same clients) includes both dht: and tracker: entries. Clients that don't implicitly enable DHT from infoHash alone need the explicit dht: source.

Test plan

  • All 30 tests pass (updated assertion to expect dht: entry)
  • Verify P2P streams appear on Android clients after deploy

Fixes #111

Generated with Claude Code

Some Stremio clients require an explicit dht: source entry in the
sources array to enable DHT peer discovery. Without it, clients
that don't implicitly enable DHT from infoHash alone silently
drop the streams. This likely explains issue #111 where streams
are returned by the API but never displayed in the client.

Generated with Claude Code
Copilot AI lite review requested due to automatic review settings August 5, 2026 10:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@peterdsp
peterdsp merged commit 6a0e965 into main Aug 5, 2026
5 checks passed
@peterdsp
peterdsp deleted the fix/p2p-dht-source branch August 5, 2026 10:18
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.

P2P streams do not appear on Android clients (official and self-hosted instances)

2 participants