style: replaced Overseerr with jellyseerr

This commit is contained in:
Fallenbagel
2022-04-13 13:17:53 +05:00
parent 84f488be06
commit 57cc48a699
55 changed files with 360 additions and 483 deletions

View File

@@ -102,7 +102,7 @@ authRoutes.post('/plex', async (req, res, next) => {
if (!user) {
if (!settings.main.newPlexLogin) {
logger.info(
'Failed sign-in attempt from user who has not been imported to Overseerr.',
'Failed sign-in attempt from user who has not been imported to Jellyseerr.',
{
label: 'Auth',
account: {
@@ -214,7 +214,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
if (user) {
deviceId = user.jellyfinDeviceId ?? '';
} else {
deviceId = Buffer.from(`BOT_overseerr_${body.username ?? ''}`).toString(
deviceId = Buffer.from(`BOT_jellyseerr_${body.username ?? ''}`).toString(
'base64'
);
}

View File

@@ -162,7 +162,7 @@ router.get('/genres/tv', isAuthenticated(), async (req, res) => {
router.get('/', (_req, res) => {
return res.status(200).json({
api: 'Overseerr API',
api: 'Jellyseerr API',
version: '1.0',
});
});

View File

@@ -325,8 +325,8 @@ settingsRoutes.get(
}
const logFile = process.env.CONFIG_DIRECTORY
? `${process.env.CONFIG_DIRECTORY}/logs/overseerr.log`
: path.join(__dirname, '../../../config/logs/overseerr.log');
? `${process.env.CONFIG_DIRECTORY}/logs/jellyseerr.log`
: path.join(__dirname, '../../../config/logs/jellyseerr.log');
const logs: LogMessage[] = [];
try {