11 Commits

Author SHA1 Message Date
IRHM 9d5e489675 plex: Stop after 10 redirects
Since the default CheckRedirect has been replaced with ours, we won't get the default protection of erroring after 10 redirects, so i've copied that back in from the std implementation
2026-07-26 01:27:30 +00:00
tonghuaroot 4e6e71687b fix(plex): strip X-Plex-Token on cross-host redirect
The Plex integration used bare http.Client values with no CheckRedirect
policy, so they followed redirects automatically. net/http strips the
standard sensitive headers on a cross-host redirect but not custom-named
headers, so the Plex token carried in X-Plex-Token was forwarded verbatim
to any host the configured PLEX_HOST redirected to, disclosing the
credential.

Route all Plex outbound calls through a shared client whose CheckRedirect
policy deletes X-Plex-Token when the redirect target host differs from the
original request host. Includes a regression test.

Signed-off-by: tonghuaroot <tonghuaroot@gmail.com>
2026-07-26 01:27:30 +00:00
IRHM 681212566b activity: Change AddRequest name to Props. Add CountAsPlay param to AddActivity()
and some formatting
2026-07-05 17:39:42 +00:00
IRHM ca82a36d23 sync: Update err soft deleted comments 2026-03-06 18:33:12 +00:00
IRHM 0e54a8c44a sync: Fix already on list handling by using new add watched func AND no longer auto restore soft deleted records
no longer auto restoring soft deleted records means if the user (soft) deletes a show (default behavior), the next sync job wont add it back.
2026-03-06 18:33:12 +00:00
IRHM e8ec1c36d1 use Poster component for games too, add watched works for games too in one endpoint
use media in content pages, remove canvas from dom after img loaded in poster, fix filter menu buttons active style, view trailer btn is a component now, show justwatch attribution (didnt realise we had to until i saw the api docs to check providers data), no longer need to use copier for detail responses, move and make tranformproviders more resilient
2026-02-22 19:59:27 +00:00
IRHM 2e53997f9e (refactor) Move db from service function parameters to service structs
Now that we have everything encapsulated in Services, we can move the db parameters of each function into the service struct itself which:
1. Simplified calling and reduces us passing around the db in random funcs that just pass it to a service func
2. probably other stuff
3. looks nicer now
2025-11-07 00:46:07 +00:00
IRHM 14eba564cb uniformize feature and plex routers 2025-10-26 18:12:56 +00:00
IRHM 1a6aa30d67 move image, task, job mods up a folder
because this differenciates them better from the more user-facing features inside the 'features' folder.
2025-10-26 18:03:39 +00:00
IRHM 4775505653 servicize activity 2025-10-26 17:10:34 +00:00
IRHM 8f2a76e9a8 (wip) server restructure/refactor 2025-10-24 18:37:20 +01:00