chore: rename Jellyseerr -> Seerr, part 1 (#1984)

* chore: rename Jellyseerr -> Seerr, part 1

* chore: update Jellyfin bot name
This commit is contained in:
TheCatLady
2025-10-06 15:22:36 -07:00
committed by GitHub
parent e7aed5b594
commit 2e2d2a031b
25 changed files with 93 additions and 100 deletions

View File

@@ -312,7 +312,7 @@ userSettingsRoutes.post<{ authToken: string }>(
// Do not allow linking of an already linked account
if (await userRepository.exist({ where: { plexId: account.id } })) {
return res.status(422).json({
message: 'This Plex account is already linked to a Jellyseerr user',
message: 'This Plex account is already linked to a Seerr user',
});
}
@@ -415,15 +415,13 @@ userSettingsRoutes.post<{ username: string; password: string }>(
})
) {
return res.status(422).json({
message: 'The specified account is already linked to a Jellyseerr user',
message: 'The specified account is already linked to a Seerr user',
});
}
const hostname = getHostname();
const deviceId = Buffer.from(
req.user?.id === 1
? 'BOT_jellyseerr'
: `BOT_jellyseerr_${req.user.username ?? ''}`
req.user?.id === 1 ? 'BOT_seerr' : `BOT_seerr_${req.user.username ?? ''}`
).toString('base64');
const jellyfinserver = new JellyfinAPI(hostname, undefined, deviceId);
@@ -452,8 +450,7 @@ userSettingsRoutes.post<{ username: string; password: string }>(
})
) {
return res.status(422).json({
message:
'The specified account is already linked to a Jellyseerr user',
message: 'The specified account is already linked to a Seerr user',
});
}