goon/mobile/src/lib/backend.ts
goon-foss d8c44a0d1e Mobile 0.1.9: OTA enable, WebView cookie-dismiss fix, porndoe connector
Mobile / OTA:
- Enable Expo Updates (app.json + AndroidManifest) → api.goon-foss.org
- Bump 0.1.6 → 0.1.9 (build.gradle, app.json, appVersion.ts, main.py /version)
- backend.ts: default public backend auto-connect (no manual login)

WebView fallback fix (PlayerScreen INJECTED_JS):
- Auto-dismiss cookie/consent gates (hqporner et al. blocked kt_player init)
- Context-scoped: only clicks consent buttons inside cookie/gdpr containers
- Retry window for <source>.src polling raised 5→15 ticks (post-dismiss init)

Resolver:
- Series-position + modifier mismatch detector (Episode 2≠4, BTS/unedited)
  → composite_score hard-reject / cap; wired into scene_score + bulk_dedup
- aggregator-mode candidate query: LIMIT 500 + title-match ordering

Connectors:
- porndoe.com browse scraper (JSON-LD VideoObject) — theporndude audit pilot

landing: APK links → goon-v0.1.9.apk

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 11:20:57 +02:00

12 lines
712 B
TypeScript

// Default public instance. A fresh install with no stored credentials
// auto-connects here, so the app works out-of-the-box without a login step.
//
// Power users who want their own self-hosted backend can still override:
// after "Sign out" the login screen lets them enter a different URL + key.
//
// The API key below is intentionally shipped in the APK. It is a coarse
// bot/scraper filter, not a secret — anyone can decompile the APK to read it.
// If it gets abused, rotate it: append a new key to API_KEYS on the server,
// ship an APK update, then drop the old key.
export const DEFAULT_BACKEND_URL = 'https://api.goon-foss.org';
export const DEFAULT_API_KEY = 'W20ggQgYjH_evCZCSBTWJsGgLMaJQP_7';