fix(api): set plex libraries to disabled if the name changes

re #324
This commit is contained in:
sct
2020-12-16 04:07:59 +00:00
parent f8f388db6d
commit 675060bcdf

View File

@@ -101,7 +101,7 @@ settingsRoutes.get('/plex/library', async (req, res) => {
.filter((library) => library.agent !== 'com.plexapp.agents.none')
.map((library) => {
const existing = settings.plex.libraries.find(
(l) => l.id === library.key
(l) => l.id === library.key && l.name === library.title
);
return {