stremio/apps/token-tray
2026-09-28 18:03:07 +02:00
..
assets Add MC brand icon to Token Tray tray and Windows installer. 2026-09-23 00:42:48 +02:00
scripts Add Token Tray NSIS installer hosting and /agent download page. 2026-09-23 00:36:40 +02:00
src Detect Viaplay Don't go via play-log and send the full cookie jar including DataDome. 2026-09-28 18:03:07 +02:00
.gitignore Add Token Tray NSIS installer hosting and /agent download page. 2026-09-23 00:36:40 +02:00
package.json Fix Viaplay VOD live-edge seek and slow Token Tray typing. 2026-09-23 02:38:26 +02:00
README.md Add Admin upload for Token Tray installer on /agent. 2026-09-23 00:48:13 +02:00
tsconfig.json Add Windows token-tray MVP for Viaplay session refresh. 2026-09-22 23:24:44 +02:00

Media Cluster Token Tray

Windows system-tray helper: stille browser-UI login voor Viaplay + F1TV (geen HTTP-login → geen cmd-CAPTCHA).

Gebruikers (productie)

  1. Open https://admin.vonas.nl/agent → download NSIS-installer (of upload een nieuwe build)
  2. Installeer → tray start mee met Windows
  3. Instellingen → Token Tray → kopieer API URL + key naar de tray
  4. Scripts → Viaplay / F1TV → accounts met e-mail + wachtwoord

Installer bouwen + uploaden (Admin)

cd apps\token-tray
pnpm.cmd install
pnpm.cmd run pack:win

Ga naar Admin → Agent (/agent), vul het versie-label in, kies release\token-tray-setup.exe.
Master bewaart het op /app/install/agent/ (volume) — geen Docker-host/docker cp nodig.

API:

  • GET /api/v1/admin/install/token-tray — status
  • POST /api/v1/admin/install/token-tray — multipart file + version
  • DELETE /api/v1/admin/install/token-tray — verwijderen
  • Publiek: GET /install/token-tray-setup.exe + token-tray.json

Dev (zonder installer)

cd apps\token-tray
pnpm.cmd install
pnpm.cmd run build
pnpm.cmd run start

Auto-modus (hands-off)

Zolang de tray op de Windows-PC draait:

  1. Server onthoudt JWT-expiry per account
  2. Tray pollt elke 10 min GET /api/v1/agent/refresh-due
  3. Alleen als een token < 90 min geldig is (of ontbreekt): stille Chrome-login + push
  4. Jij hoeft niets te klikken — alleen PC/tray aan laten

Handmatig blijft beschikbaar: Nu checken / Alles vernieuwen.

API (tray-key)

  • GET /api/v1/agent/accounts — accounts + wachtwoorden
  • GET /api/v1/agent/refresh-due
  • POST /api/v1/agent/viaplay/tokens
  • POST /api/v1/agent/f1tv/tokens