Keep track of changed state

merge-requests/21/head
Bob Mottram 2021-03-02 13:16:27 +00:00
parent c2009a7c8a
commit 426daa6642
1 changed files with 18 additions and 17 deletions

View File

@ -1940,7 +1940,8 @@ if args.speaker:
httpPrefix,
True, __version__)
if speakerJson:
if speakerJson['say'] != prevSay and speakerJson.get('name'):
if speakerJson['say'] != prevSay:
if speakerJson.get('name'):
print(html.unescape(speakerJson['name']) + ': ' +
html.unescape(speakerJson['say']) + '\n')
pitch = getSpeakerPitch(speakerJson['name'])