From b5fd1d520cd2a7be6e6356a25129e93af1caf542 Mon Sep 17 00:00:00 2001 From: sct Date: Fri, 29 Jan 2021 08:13:50 +0000 Subject: [PATCH] fix(notifications): only send a single notification when standard media becomes available fixes #770 --- server/subscriber/MediaSubscriber.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/subscriber/MediaSubscriber.ts b/server/subscriber/MediaSubscriber.ts index a1289fb0d..8414d9a98 100644 --- a/server/subscriber/MediaSubscriber.ts +++ b/server/subscriber/MediaSubscriber.ts @@ -21,7 +21,7 @@ export class MediaSubscriber implements EntitySubscriberInterface { if (entity.mediaType === MediaType.MOVIE) { const requestRepository = getRepository(MediaRequest); const relatedRequests = await requestRepository.find({ - where: { media: entity }, + where: { media: entity, is4k: false }, }); if (relatedRequests.length > 0) { @@ -64,7 +64,7 @@ export class MediaSubscriber implements EntitySubscriberInterface { for (const changedSeasonNumber of changedSeasons) { const requests = await requestRepository.find({ - where: { media: entity }, + where: { media: entity, is4k: false }, }); const request = requests.find( (request) =>