From 5c917f95b41dc44ae2c5f0790bbcabbfa8c5126b Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Thu, 17 Jun 2021 13:42:08 -0400 Subject: [PATCH] fix(backend): use different device ids for jellyfin users --- server/routes/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index ed98d088f..8e561400d 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -189,9 +189,9 @@ authRoutes.post('/jellyfin', async (req, res, next) => { if (user) { deviceId = user.jellyfinDeviceId ?? ''; } else { - deviceId = Buffer.from( - `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0` - ).toString('base64'); + deviceId = Buffer.from(`BOT_overseerr_${body.username ?? ''}`).toString( + 'base64' + ); } // First we need to attempt to log the user in to jellyfin const jellyfinserver = new JellyfinAPI(hostname ?? '', undefined, deviceId);