Skip to content

fix(stream): allow standard playback IDs for installed external Stremio addons (#139) - #522

Open
Himanth-reddy wants to merge 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:fix/issue-139-external-addon-homescreen-playback
Open

fix(stream): allow standard playback IDs for installed external Stremio addons (#139)#522
Himanth-reddy wants to merge 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:fix/issue-139-external-addon-homescreen-playback

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

Fixes #139.

Problem

When playing episodes directly from the Home Screen (or Continue Watching / category rows), external Stremio addons (e.g. stremio-kan-box-addon or custom catalog addons) failed to play or return streams.

Root Cause

When media items are resolved for playback, stream queries are made using standard IMDB (tt...) or TMDB (tmdb:...) IDs. In StreamRepository.kt, idMatchesAnyPrefix(id, manifest.idPrefixes) checked whether id matched the addon's declared idPrefixes. If an external addon's manifest specified custom catalog prefixes (e.g. idPrefixes: ["kanbox"]), idMatchesAnyPrefix returned false for standard tt / tmdb query IDs, filtering out the installed addon from stream resolution.

Solution

Updated idMatchesAnyPrefix in StreamRepository.kt to allow standard playback IDs (tt..., tmdb:..., imdb:...) to match installed streaming addons, ensuring user-installed external Stremio addons are properly queried during stream resolution. Added test coverage in StreamEpisodeRequestPlannerTest.kt.

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.

External Addon Episodes Don’t Play from Home Screen (Stremio-Kan-Box Addon)

1 participant