Commit Graph
100 Commits
Author SHA1 Message Date
nerandClaude Fable 5 526f0c24e0 refactor(torrents): move pin into row actions
Move the pin toggle out of the title cell into the row's action
buttons (next to play) and drop the hover-reveal animation, so the
title column stays clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 00:30:00 +03:00
nerandClaude Fable 5 461ff51721 feat(torrents): persist pinned Toloka magnets, bookmark icon
Cache the fetched magnet of a pinned torrent in localStorage so a
pinned Toloka row stays playable right after a reload without
re-fetching from Toloka; the magnet is dropped when unpinned. Also
switch the pin control to a bookmark icon.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 22:51:05 +03:00
nerandClaude Fable 5 06f142510b feat(torrents): pin played torrents to the top
Pin torrents (via the pin toggle or automatically on play/stream) so
they stick to the top of the list regardless of the active sort, and
persist the pins to localStorage. The pin sits before the title,
revealing on row hover on desktop and always shown on touch or when
pinned.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 22:38:57 +03:00
nerandClaude Fable 5 c144181881 feat(torrents): hide YTS provider for series
YTS is a movies-only API, so drop its tab and skip its request when
viewing a TV series; the tab grid adapts to the remaining providers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 22:20:26 +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
nerandClaude Fable 5 131beeb07f feat(tlk): persist Toloka session in Redis across cold starts
Store the serialized cookie jar in Upstash Redis after login and
restore it on instance start, so serverless cold starts reuse the
session instead of re-authenticating. Falls back to the previous
in-memory behavior when Redis is not configured or unavailable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 21:02:13 +03:00
ner 16601f20f3 fix(person): unblock page streaming by removing await on prefetchQuery 2026-08-05 19:11:56 +03:00
ner c5f64af5aa fix: play button bleeding 2026-08-05 19:03:01 +03:00
ner c3adad3fc4 extract YearHint component; fix fetchPriority casing 2026-08-05 18:45:17 +03:00
nerandClaude Opus 5 3dc2ebfe53 feat: replace the starring page with a person page
A credit now opens /person/{id}: portrait, name, department, life dates and
birthplace, the biography, and the full filmography ranked by vote count.
One request carries all of it — combined_credits rides along on the person
call — so the discover based starring query and its with_people filter go.

The biography fills whatever height the portrait leaves and fades where it
is cut, with the whole text in a tooltip on hover; a phone has no height to
respect there, so it simply runs on.

Route level and query level skeletons stand in while it loads, built from
the shadcn primitive.

Development server side fetches go over the loopback rather than SITE_URL,
which is a LAN address meant for other devices: once that address moves the
fetch hangs until undici times out, ten seconds per navigation.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 22:09:33 +03:00
nerandClaude Opus 5 6fc41c0901 feat: surface availability, airing progress and the director in preview
Movies get a theatre/stream/blu-ray icon in the info row, series get the
latest aired episode as S03 E07. Both reveal the relevant dates on hover or
tap through a shared Hint tooltip.

Release dates ride along on the details request via append_to_response and
the series fields are already in the tv payload, so neither indicator costs
an extra call. Theatre state is only claimed while the run can still be
current, otherwise a classic with no digital entry would read as in cinemas.

The credits carousel now opens with the director, read from the crew array
that the credits response already carries. A series has no single director,
so the one behind most episodes stands in.

Drop with_cast from the starring query: TMDB ANDs it with with_people, so
every director link would have resolved to an empty list.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 19:46:51 +03:00
nerandClaude Opus 4.8 a25252c66d fix: cap hls.js buffers so constrained TV browsers survive seeks
LG webOS (and similar TV browsers) hang when seeking 4K HEVC: hls.js
keeps a large back-buffer and the seek-time flush/re-append spikes
memory past what the TV can handle. Pass a conservative hls.js config
(short backBufferLength, capped max buffer length/size) via the Vidstack
HLS provider; still ample for desktop playback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-31 16:31:10 +03:00
nerandClaude Opus 4.8 def565cf3b fix: set crossOrigin on the player so cross-origin HLS subtitles render
Vidstack loads text-track cues via JS; cross-origin subtitle tracks
(served by TorrServer on another origin) need the crossorigin attribute
on the media element to render. Also required for native HLS on iOS/TV
to use the cross-origin stream.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-31 15:55:46 +03:00
nerandClaude Opus 4.8 3538738bb9 feat: play MKV/HEVC in-browser via TorrServer -gst HLS with track selection
Route MKV/WebM/AVI through TorrServer's native /gst HLS (copy-mode: HEVC
kept, audio->AAC, keyframe-aligned segments with real duration + seeking)
and play MP4 directly. Add an audio-track menu sourced from /gst/probe
(switching reloads with &audio=N and resumes position), surface the HLS
subtitle tracks through the existing captions menu, and show the Play
button for every video container.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-31 14:28:52 +03:00
nerandClaude Sonnet 4.6 692f5ab4e3 fix: apply fetchpriority=high to the actual LCP carousel poster
The hero overlay only renders when the random-movie index is non-zero,
but the index atom defaults to 0 — so on a fresh load the LCP element
was actually the first Virtuoso carousel item, which lacked `priority`.
Track the initial index and mark only that item's poster as high
priority, covering both the index===0 and index!==0 first-paint paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 23:17:37 +03:00
nerandClaude Sonnet 4.6 07bbb576f6 perf: mark hero poster image as high fetch priority
Lighthouse flagged the LCP carousel poster for missing fetchpriority=high.
Adds a priority prop to Poster that emits the lowercase fetchpriority
attribute (untyped in this @types/react version, so React forwards it
through as a custom attribute) only on the eagerly-rendered hero image.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 23:08:32 +03:00
nerandClaude Sonnet 4.6 127a02f4e1 perf: target modern browsers and preconnect to the image CDN
Add a browserslist targeting evergreen browsers so autoprefixer skips
unnecessary vendor prefixes, and preconnect/dns-prefetch to
image.tmdb.org since poster/backdrop images are the LCP element on
most pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 22:51:59 +03:00
nerandClaude Sonnet 4.6 dec6560cf0 fix: don't spread dnd-kit attributes onto sortable tab triggers
useSortable's `attributes` (role="button", tabIndex, aria-pressed) were
overriding Radix Tabs.Trigger's own role="tab" and roving-tabindex
management, producing an invalid ARIA tab/role combination that
regressed the accessibility audit. `listeners` alone (onPointerDown /
onKeyDown) is sufficient to drive the drag — the trigger is already a
properly accessible, focusable element.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 22:32:06 +03:00
nerandClaude Sonnet 4.6 b31bd062e2 feat: drag-to-reorder torrent provider tabs with localStorage persistence
Lets users customize the order of YTS / Pirate Bay / Toloka tabs in the
torrent search modal via drag-and-drop; the saved order also determines
which provider opens by default. dnd-kit is isolated to the modal's
lazily-loaded chunk so it doesn't affect the main bundle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 22:20:19 +03:00
ner f447cf3423 fix: new address for yts provider 2025-12-13 20:16:46 +02:00
ner f790cfef2a fix: prevent new tab from being focused 2025-08-31 16:35:06 +03:00
ner cc3a83d767 fix: prevent new tab from being focused 2025-08-30 13:58:02 +03:00
ner bd708ff8a5 fix: vlc icon changed 2025-08-24 13:21:36 +03:00
ner b6bef36e82 feat: added vlc play button 2025-08-23 23:01:25 +03:00
ner 3460041115 feat: added m3u handler support 2025-08-23 21:44:57 +03:00
ner f78af76da5 feat: safari autoplay 2025-08-17 20:40:34 +03:00
ner 2e16746a40 feat: alt player 2025-08-17 18:31:42 +03:00
ner 6fc34e3797 feat: video format restrictions 2025-08-15 18:42:49 +03:00
ner 82c14c1d5c feat: added download status 2025-08-14 21:38:24 +03:00
ner cd3fabc0d8 feat: customer's torrent streamer can be set 2025-08-14 14:29:30 +03:00
ner 0f5c73c183 fix: favourites pages -> clien side 2025-07-19 12:16:35 +03:00
ner 09e959d3d4 chore: update node to v22 2025-07-19 12:04:05 +03:00
ner 18156324ad fix: title 2024-12-07 23:18:30 +02:00
ner ee5e457db7 fix: preview layout for small screens 2024-12-07 15:39:56 +02:00
ner 3615d5538d fix: titles 2024-11-19 14:44:17 +02:00
ner c7dd7eff19 fix: show in new tab 2024-11-17 21:14:58 +02:00
ner 74bfe5726e fix: preview layout 2024-11-16 20:36:50 +02:00
ner ca40872b98 feat: show page meta 2024-11-16 19:23:21 +02:00
ner c550f1e29e feat: open show in new tab 2024-11-16 19:16:55 +02:00
ner 063a2494ae feat: show page meta 2024-11-16 18:50:18 +02:00
ner bbae7abaf5 fix: auth retry 2024-11-16 15:43:37 +02:00
ner fbbd7b52e3 fix: authorization 2024-11-11 19:32:52 +02:00
ner a3fb95eca1 fix: robots.txt 2024-11-07 20:14:12 +02:00
ner ef6223ff03 fix: robots.txt 2024-11-07 20:07:52 +02:00
ner a2c5ba5184 fix: poster aspect ratio 2024-11-07 17:27:20 +02:00
ner 6098de1e5c fix: show handlers 2024-11-07 17:12:57 +02:00
ner 418ab2cf15 fix: slide flickering 2024-11-07 17:00:45 +02:00
ner af942149af fix: prevent slider flickering 2024-11-07 12:56:43 +02:00
ner 183c7231a1 feat: show page 2024-11-06 22:12:19 +02:00
ner abe1c795a1 fix: removed SpeedInsights 2024-11-04 13:58:51 +02:00
ner 18b110a269 fix: theme color 2024-11-04 13:45:25 +02:00
ner 083f7224da feat: speed-insights 2024-11-04 12:54:19 +02:00
ner e5c44fe359 feat: static generation 2024-11-04 12:47:15 +02:00
ner 25866b9eb9 feat: static generation 2024-11-04 12:35:39 +02:00
ner 99255f4f13 fix: search 2024-11-03 19:22:19 +02:00
ner 995342f18a feat: proxy cache 2024-11-03 17:42:40 +02:00
ner 32e7885791 refactoring: poster 2024-10-30 21:14:15 +02:00
ner 053283564c fix: reduced bundle size 2024-10-30 19:35:21 +02:00
ner 4e11c5228a fix: meta descriptions 2024-10-30 13:58:13 +02:00
ner 957a54187c fix: torrent search query autofocus 2024-10-30 13:46:19 +02:00
ner e509bb8127 feat: dark favicon 2024-10-30 13:27:46 +02:00
ner 3b954279f7 fix: proper prefetch 2024-10-29 19:39:41 +02:00
ner c9ca262da8 fix: back to prefetch 2024-10-29 18:25:52 +02:00
ner a268f7c38d feat: change torrents search query 2024-10-29 16:45:32 +02:00
ner 731d658740 fix: streamed hydration => providers 2024-10-29 12:16:41 +02:00
ner e9c0f3bef3 feat: ReactQueryStreamedHydration 2024-10-29 09:33:42 +02:00
ner 0e146b0c53 fix: removed torrent provider auto select 2024-10-29 09:11:36 +02:00
ner 62791957bf fix: server's root path 2024-10-29 08:47:08 +02:00
ner 1b9d979574 refactoring 2024-10-28 21:15:22 +02:00
ner ece48e90c6 refactoring: server actions => tmdb proxy 2024-10-28 20:08:41 +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 2cf6291470 fix: font-size 2024-10-27 16:27:38 +02:00
ner 299037c65c feat: new font 2024-10-27 12:30:12 +02:00
ner 7d223e4d1b feat: fetch toloka's magnets 2024-10-27 12:14:40 +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 4f4e6b1307 fix: toloka magnet links 2024-10-26 23:24:09 +03:00
ner ee782f3845 log: magnet 2024-10-26 22:10:35 +03: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 335e26aa76 log: toloka 2024-10-25 22:14:57 +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 be9a128793 feat: toloka 2024-10-25 17:29:26 +03:00
ner f3b90f30c3 fix: misspellings 2024-10-25 12:56:28 +03:00
ner d8363ca250 fix: player launcher 2024-10-23 15:37:30 +03:00
ner ce9a4249ae fix: site url 2024-10-23 15:11:11 +03:00
ner fc980556e0 fix: description 2024-10-23 13:59:21 +03:00
ner 5470401222 init: pwa 2024-10-23 13:32:08 +03:00
ner db3a885a55 fix: input zoom 2024-10-23 10:33:03 +03:00
ner dd90ede4cd fix: tailwind touch plugin 2024-10-22 12:06:07 +03:00
ner 4b87bec823 fix: 4x3 videos 2024-10-22 11:17:16 +03:00
ner 1c5502a018 chore: removed junk deps 2024-10-21 23:57:59 +03:00
ner 02b1ec5f68 chore: removed junk deps 2024-10-21 23:57:28 +03:00
ner dfe107eda2 fix: images for retina 2024-10-21 22:29:06 +03:00
ner 8473a104ca fix: retina images 2024-10-21 21:03:32 +03:00
ner 0cface89bf refactoring: first render improvements 2024-10-21 18:57:49 +03:00
ner 38aebcbe28 refactoring: improvements for lighthouse 2024-10-21 15:35:08 +03:00