From 203e428a7488161bfecc38f9b91d3317036a672d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 Mar 2021 20:28:04 +0000 Subject: [PATCH] Check if like was sent --- notifications_client.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index fe659dde9..02765120a 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -637,12 +637,13 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, actor + '/followers#buttonheader') prevFollow = speakerJson['notify']['followRequests'] elif speakerJson['notify']['likedBy'] != prevLike: - if notificationSounds: - _playNotificationSound(soundsDir + '/' + - likeSoundFilename, player) - _desktopNotification(notificationType, title, - 'New like ' + - speakerJson['notify']['likedBy']) + if '##sent##' not in speakerJson['notify']['likedBy']: + if notificationSounds: + _playNotificationSound(soundsDir + '/' + + likeSoundFilename, player) + _desktopNotification(notificationType, title, + 'New like ' + + speakerJson['notify']['likedBy']) prevLike = speakerJson['notify']['likedBy'] elif speakerJson['notify']['share'] != prevShare: if speakerJson['notify']['share'] is True: