Skip to content

fix(watchhub): show platform name for streaming platform sources#347

Open
lakshaygujjar273-cys wants to merge 1 commit into
ProdigyV21:mainfrom
lakshaygujjar273-cys:fix/watchhub-platform-display
Open

fix(watchhub): show platform name for streaming platform sources#347
lakshaygujjar273-cys wants to merge 1 commit into
ProdigyV21:mainfrom
lakshaygujjar273-cys:fix/watchhub-platform-display

Conversation

@lakshaygujjar273-cys

Copy link
Copy Markdown

Fixes #266

Problem

WatchHub addon returns streams with externalUrl pointing to platforms
like Amazon Prime Video. The sources list showed no platform name and
clicking any source showed "Playback error" because ExoPlayer cannot
play a streaming platform web page.

Fix

Updated getSourceName() in StremioStream to derive a human-readable
platform label (e.g. "Amazon Prime Video", "Netflix", "Disney+") from
the externalUrl host when the stream's title/name field is blank.

Testing

  • Install WatchHub addon
  • Search for a title available on Amazon Prime
  • Sources list now shows "WatchHub - Amazon Prime Video" instead of blank

- getSourceName() now derives platform label (Amazon Prime Video,
  Netflix, etc.) from externalUrl host when title/name is blank
- Fixes sources list showing no platform name for WatchHub entries

Fixes ProdigyV21#266
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.

Problem with WatchHub addon

1 participant