mirror of https://gitlab.com/bashrc2/epicyon
Check that file exists
parent
f89b0928e7
commit
7e0d052006
|
@ -329,6 +329,8 @@ def _getSpeakerJsonFromIndex(boxName: str, index: int) -> {}:
|
||||||
publishedYear + '/' +
|
publishedYear + '/' +
|
||||||
publishedMonth + '/' +
|
publishedMonth + '/' +
|
||||||
indexList[index])
|
indexList[index])
|
||||||
|
if not os.path.isfile(speakerJsonFilename):
|
||||||
|
return None
|
||||||
return loadJson(speakerJsonFilename)
|
return loadJson(speakerJsonFilename)
|
||||||
|
|
||||||
|
|
||||||
|
@ -441,8 +443,6 @@ def _showLocalBox(boxName: str,
|
||||||
content += ' '
|
content += ' '
|
||||||
if speakerJson.get('detectedLinks'):
|
if speakerJson.get('detectedLinks'):
|
||||||
if len(speakerJson['detectedLinks']) > 0:
|
if len(speakerJson['detectedLinks']) > 0:
|
||||||
print("speakerJson['detectedLinks']: " +
|
|
||||||
str(speakerJson['detectedLinks']))
|
|
||||||
content = '🔗' + content
|
content = '🔗' + content
|
||||||
content = (content[:40]) if len(content) > 40 else content
|
content = (content[:40]) if len(content) > 40 else content
|
||||||
print(indent + str(posStr) + ' | ' + str(name) + ' | ' +
|
print(indent + str(posStr) + ' | ' + str(name) + ' | ' +
|
||||||
|
|
Loading…
Reference in New Issue