mirror of https://gitlab.com/bashrc2/epicyon
Don't print message twice
parent
411c5f7f0d
commit
1c5993b704
|
@ -272,20 +272,11 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
# append image description if needed
|
# append image description if needed
|
||||||
if not speakerJson.get('imageDescription'):
|
if not speakerJson.get('imageDescription'):
|
||||||
sayStr = speakerJson['say']
|
sayStr = speakerJson['say']
|
||||||
if screenreader:
|
|
||||||
# echo spoken text to the screen
|
|
||||||
print(html.unescape(nameStr) + ': ' +
|
|
||||||
html.unescape(speakerJson['say']) + '\n')
|
|
||||||
else:
|
else:
|
||||||
sayStr = speakerJson['say'] + '. ' + \
|
sayStr = speakerJson['say'] + '. ' + \
|
||||||
speakerJson['imageDescription']
|
speakerJson['imageDescription']
|
||||||
# echo spoken text to the screen
|
|
||||||
imageDescription = \
|
print('')
|
||||||
html.unescape(speakerJson['imageDescription'])
|
|
||||||
if screenreader:
|
|
||||||
print(html.unescape(nameStr) + ': ' +
|
|
||||||
html.unescape(speakerJson['say']) +
|
|
||||||
'\n' + imageDescription)
|
|
||||||
|
|
||||||
# say the speaker's name
|
# say the speaker's name
|
||||||
_sayCommand(nameStr, screenreader,
|
_sayCommand(nameStr, screenreader,
|
||||||
|
|
Loading…
Reference in New Issue