Commit Graph
30 Commits
Author SHA1 Message Date
ner f642dad64e feat(torrents): Toloka section filter by show type, year scope for movies only 2026-09-13 19:14:42 +03:00
nerandClaude Opus 5 01792a9669 perf(cache): edge-cache tmdb proxy, call tmdb directly on server, enable ISR
Three exceeded Vercel free tier limits (edge requests, function invocations,
fast origin transfer) all traced back to nothing being cached.

- Http defaults preventCache to false and the tmdb proxy now sends a real
  Cache-Control, so public responses are edge cached instead of missing on
  every request. Session scoped calls keep private, no-store.
- On the server movieAdvisor talks to tmdb directly. It used to fetch its own
  public /api/tmdb url, billing a second edge request, a second function
  invocation and the whole payload as origin transfer per server render.
- Add generateStaticParams to movie, tv and person pages. Without it Next
  treats the segment as fully dynamic and ignores revalidate, so the pages
  re-rendered on every request instead of using ISR.
- Trim credits and person payloads in the proxy: credits 72kb to 13kb,
  aggregate_credits 308kb to 102kb, person 191kb to 124kb. Only fields no
  mapper reads are dropped, mapped output is unchanged.
- Detail pages are cached now, so only a real tmdb 404 becomes notFound and
  other failures bubble up instead of being baked in as a 404 for a day.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 10:41:09 +03:00
nerandClaude Opus 4.8 ecc57ff135 feat(player): external subtitles via OpenSubtitles
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>
2026-08-08 13:17:12 +03:00
nerandClaude Opus 4.8 3ddba5e6a2 feat(tlk): refresh endpoint to re-pull a thread's current magnet
Add /api/refresh?tid=<id> that re-downloads a Toloka thread's .torrent
server-side and returns a fresh magnet + m3u. Pass the thread id (tlk)
into the m3u params for series. Drop the per-magnet cache so refreshes
always reflect the thread's current state (new episodes while airing).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-07 20:24:44 +03:00
nerandClaude Fable 5 2e81908b22 feat(torrents): series parsing, S:E/Year columns, magnet cache
- parse Toloka Ukrainian season/episode naming (Сезони 1-10,
  серій 7 з 8, homoglyphs) into a clean title + episodes field
- add series-only sortable S:E column, desktop-only Year column;
  strip year/source meta from the title cell
- filter out torrents with fewer than 5 seeders in the API route
- cache Toloka magnets in Redis so each .torrent is downloaded once
  across serverless instances; append public trackers to magnets
  (never the passkey-bearing announce URLs from the .torrent)
- fix play button hover state while magnet is pending

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 22:14:58 +03:00
ner fbbd7b52e3 fix: authorization 2024-11-11 19:32:52 +02:00
ner 995342f18a feat: proxy cache 2024-11-03 17:42:40 +02:00
ner 97d55b24a1 refactoring: server actions => tmdb proxy 2024-10-28 20:04:36 +02:00
ner dfdfb79169 fix: SITE_URL 2024-10-28 17:20:05 +02:00
ner 1fe912f4bd log: migration 2024-10-27 16:49:12 +02:00
ner 8691c7d66d feat: fetch toloka's magnets 2024-10-27 12:13:02 +02:00
ner 3792e3face log: toloka magnet 2024-10-27 11:05:34 +02:00
ner 5cbf93b3b8 refactoring: server actions data fetching -> api routes 2024-10-26 21:33:39 +03:00
ner 1111712d2c fix: toloka auth 2024-10-26 15:11:23 +03:00
ner 5e9e7cb6a8 fix: response type 2024-10-25 22:04:06 +03:00
ner 345cf911a4 init: toloka 2024-10-25 22:00:02 +03:00
ner 043375f44a feat: account 2024-10-18 18:56:34 +03:00
ner df0f7c943b feat: auth using sse 2024-10-17 21:47:55 +03:00
ner 03cfacf91c refactoring: upgrade nextjs; api => server actions 2024-01-06 12:55:11 +02:00
ner 626586939a fix: changed command for similar page 2023-08-19 17:23:19 +03:00
ner 8bff4d6d80 feat: added torrents and similar for every movie 2023-08-18 12:36:10 +03:00
ner ada725072f feat: added the pirate bay parser 2023-08-18 11:26:27 +03:00
ner 74e35267f9 fix: removed torrents 2023-08-13 10:23:26 +03:00
ner ef60471cb4 fix: changed env 2023-08-11 16:42:46 +03:00
ner b7715ff3de fix: changed env 2023-08-11 15:46:27 +03:00
ner edf74fc92c fix: removed revalidate 2023-08-11 15:41:20 +03:00
ner dd7339b62c feat: added torrents list 2023-08-11 15:23:01 +03:00
ner 89e76f5df6 feat: added favorites page 2023-08-09 18:43:48 +03:00
ner a4f420821a refactor: layout improvements; suggestions count increased up to 10 2023-08-05 16:11:20 +03:00
ner 3c1050898e feat: Initialize project 2023-08-05 12:28:04 +03:00