From 181ab0b7f6ebde229379fd945daa0b9634bba78d Mon Sep 17 00:00:00 2001 From: Jos Vooges | STH Date: Tue, 25 Aug 2026 02:36:24 +0200 Subject: [PATCH] Fix Fastify 5 redirect signature for playback. Co-authored-by: Cursor --- apps/master-api/src/stremio/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/master-api/src/stremio/routes.ts b/apps/master-api/src/stremio/routes.ts index 2a432d0..b3f5ff0 100644 --- a/apps/master-api/src/stremio/routes.ts +++ b/apps/master-api/src/stremio/routes.ts @@ -160,7 +160,7 @@ export async function registerStremioRoutes(app: FastifyInstance, config: Config try { const session = await playback.createSession(mediaFileId, userId); - return reply.redirect(307, session.streamUrl); + return reply.code(307).redirect(session.streamUrl); } catch (err) { const message = err instanceof Error ? err.message : "Playback unavailable"; request.log.error({ err, mediaFileId }, "playback create failed");