Add an OpenSubtitles client, /api/subtitles routes and useSubtitles to fetch subtitles by show/episode/filename, wire them as player tracks alongside embedded ones, and strip hls.js's auto-added tracks. New OPENSUBTITLES_* / SUBTITLE_LANGUAGES env vars (documented in env.example). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
878 B
Plaintext
17 lines
878 B
Plaintext
MOVIE_DB_TOKEN=YOUR_TOKEN
|
|
PIRATE_BAY_HOST=https://thepiratebay10.org
|
|
YTS_HOST=https://yts.mx/api/v2/list_movies.json
|
|
TOLOKA_HOST=https://toloka.to
|
|
TOLOKA_USERNAME=your_toloka_username
|
|
TOLOKA_PASSWORD=your_toloka_password
|
|
NEXT_PUBLIC_TORRENT_PROXY=http://localhost:8090
|
|
# Optional: external subtitles in the web player — free API key at https://www.opensubtitles.com/en/consumers
|
|
OPENSUBTITLES_API_KEY=your_api_key
|
|
# Optional: logging in raises the download quota (anonymous keys get ~5 downloads/day)
|
|
OPENSUBTITLES_USERNAME=your_opensubtitles_username
|
|
OPENSUBTITLES_PASSWORD=your_opensubtitles_password
|
|
# Comma-separated preferred subtitle languages (ISO 639-1)
|
|
SUBTITLE_LANGUAGES=en,uk
|
|
# Optional: persists the Toloka session across serverless cold starts (falls back to in-memory)
|
|
UPSTASH_REDIS_REST_URL=https://your-db.upstash.io
|
|
UPSTASH_REDIS_REST_TOKEN=your_upstash_token |