merge-requests/30/head
Bob Mottram 2021-03-15 15:25:43 +00:00
parent 0cf4ab99f4
commit 93d151039b
1 changed files with 6 additions and 3 deletions

View File

@ -1159,12 +1159,15 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
_getSpeakerJsonFromIndex(currTimeline, currIndex) _getSpeakerJsonFromIndex(currTimeline, currIndex)
if not speakerJson: if not speakerJson:
speakerJson = {} speakerJson = {}
print('speakerJson: ' + str(speakerJson))
if speakerJson.get('detectedLinks'): if speakerJson.get('detectedLinks'):
if ' ' in keyPress: if ' ' in keyPress:
index = keyPress.split(' ')[1] postIndex = keyPress.split(' ')[1].strip()
if index.isdigit(): print('postIndex: ' + str(postIndex))
if postIndex.isdigit():
speakerJson = \ speakerJson = \
_getSpeakerJsonFromIndex(currTimeline, index) _getSpeakerJsonFromIndex(currTimeline,
int(postIndex))
sayStr = 'Opening web links in browser.' sayStr = 'Opening web links in browser.'
_sayCommand(sayStr, sayStr, originalScreenReader, _sayCommand(sayStr, sayStr, originalScreenReader,
systemLanguage, espeak) systemLanguage, espeak)