|
|
@ -254,6 +254,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
|
|
|
|
|
|
|
|
|
|
|
|
Object.assign(settings.tautulli, req.body);
|
|
|
|
Object.assign(settings.tautulli, req.body);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (settings.tautulli.hostname) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const tautulliClient = new TautulliAPI(settings.tautulli);
|
|
|
|
const tautulliClient = new TautulliAPI(settings.tautulli);
|
|
|
|
|
|
|
|
|
|
|
@ -274,6 +275,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
|
|
|
|
message: 'Unable to connect to Tautulli.',
|
|
|
|
message: 'Unable to connect to Tautulli.',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return res.status(200).json(settings.tautulli);
|
|
|
|
return res.status(200).json(settings.tautulli);
|
|
|
|
});
|
|
|
|
});
|
|
|
|