Skip to content

Commit 4da9312

Browse files
committed
fix(plex): On Plex webhook routes filter plex sources to get webhook source only
#291
1 parent d19d40d commit 4da9312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/server/plexRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export const setupPlexRoutes = (app: ExpressWithAsync, logger: Logger, scrobbleS
2323
if (payload !== undefined) {
2424
const playObj = PlexSource.formatPlayObj(payload, {newFromSource: true});
2525

26-
const pSources = scrobbleSources.getByType('plex') as PlexSource[];
26+
const pSources = scrobbleSources.getByType('plex').filter(x => x instanceof PlexSource) as PlexSource[];
2727
if (pSources.length === 0) {
28-
plexLog.warn('Received valid Plex webhook payload but no Plex sources are configured');
28+
plexLog.warn('Received valid Plex webhook payload but no Plex Webhook sources are configured');
2929
}
3030

3131
for (const source of pSources) {

0 commit comments

Comments
 (0)