From 1c5993b7048abe46d960836da555f558ee44762b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 12:15:08 +0000 Subject: [PATCH] Don't print message twice --- notifications_client.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index 9827bbf9f..0a16b6ddf 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -272,21 +272,12 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, # append image description if needed if not speakerJson.get('imageDescription'): sayStr = speakerJson['say'] - if screenreader: - # echo spoken text to the screen - print(html.unescape(nameStr) + ': ' + - html.unescape(speakerJson['say']) + '\n') else: sayStr = speakerJson['say'] + '. ' + \ speakerJson['imageDescription'] - # echo spoken text to the screen - imageDescription = \ - html.unescape(speakerJson['imageDescription']) - if screenreader: - print(html.unescape(nameStr) + ': ' + - html.unescape(speakerJson['say']) + - '\n' + imageDescription) - + + print('') + # say the speaker's name _sayCommand(nameStr, screenreader, systemLanguage, espeak,