feat: add debug logging and fix gift membership badge extraction

This commit is contained in:
Yusuf İpek
2025-10-08 22:31:29 +03:00
parent c131913b8a
commit f85b2a942f
3 changed files with 75 additions and 16 deletions
-1
View File
@@ -8,7 +8,6 @@
3. Client dashboard fetches chat data via REST and pushes selection updates via REST.
4. Overlay page consumes a Server-Sent Events stream to stay in sync with the selected message.
- **Realtime Delivery:** SSE for one-directional updates to OBS browser source; leave room to switch to WebSockets if we need bidirectional control later.
- **Configuration:** `.env.local` (or process env) supplies `YOUTUBE_LIVE_ID` and optional Innertube overrides; backend picks mock mode automatically when unset.
## Key Patterns & Practices
- Abstract ingestion behind a module (`backend/src/ingestion/youtubei.ts`) so alternate providers (official API, headless browser) can be swapped in quickly.