Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main

main
Bob Mottram 2021-03-15 19:21:29 +00:00
commit dc0fd86c39
1 changed files with 2 additions and 3 deletions

View File

@ -461,8 +461,7 @@ def _showLocalBox(notifyJson: {}, boxName: str,
else: else:
while len(name) < 16: while len(name) < 16:
name += ' ' name += ' '
udata = speakerJson['content'] content = speakerJson['content']
content = udata.encode("ascii","ignore").decode().strip()
if speakerJson.get('detectedLinks'): if speakerJson.get('detectedLinks'):
if len(speakerJson['detectedLinks']) > 0: if len(speakerJson['detectedLinks']) > 0:
content = '🔗' + content content = '🔗' + content
@ -472,7 +471,7 @@ def _showLocalBox(notifyJson: {}, boxName: str,
while len(content) < 40: while len(content) < 40:
content += ' ' content += ' '
print(indent + str(posStr) + ' | ' + name + ' | ' + print(indent + str(posStr) + ' | ' + name + ' | ' +
published + ' | ' + content + ' |') published + ' | ' + content)
ctr += 1 ctr += 1
print('') print('')