Skip to content

fix: add GitHub raw fallback & reduced timeout for Pastebin manifest - #549

Open
nandhanay wants to merge 1 commit into
ProdigyV21:mainfrom
nandhanay:fix/pastebin-raw-fallback
Open

fix: add GitHub raw fallback & reduced timeout for Pastebin manifest#549
nandhanay wants to merge 1 commit into
ProdigyV21:mainfrom
nandhanay:fix/pastebin-raw-fallback

Conversation

@nandhanay

Copy link
Copy Markdown

Summary

Fixes #537

Hardcoded Pastebin dependency (https://pastebin.com/raw/P4gfd98n) caused a ~14-second TCP connection timeout on startup for users in Turkey and regions where Pastebin is blocked.

Changes

  • Config: Added repository-hosted config/streaming_addon.txt.
  • MediaRepository: Updated STREAMING_COLLECTION_ADDON_URL to GitHub raw URL and retained PASTEBIN_STREAMING_ADDON_URL as secondary fallback.
  • StreamRepository: Updated resolveAddonInstallUrl to use a 3.5s fast timeout and automatic fallback chain between GitHub raw and Pastebin.
  • HomeViewModel: Updated auto-installed addon cleanup list to handle both manifest URLs.
  • Unit Tests: Added StreamAddonFallbackTest.

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.

Pastebin dependency causes ~14s timeout for users in Turkey

1 participant