mirror of https://gitlab.com/bashrc2/epicyon
Don't print message twice
parent
411c5f7f0d
commit
1c5993b704
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue