mirror of https://gitlab.com/bashrc2/epicyon
Include publication date in speaker endpoint
parent
073b322d36
commit
8f0c6e5b35
|
@ -279,7 +279,7 @@ def _speakerEndpointJson(displayName: str, summary: str,
|
||||||
links: [], gender: str, postId: str,
|
links: [], gender: str, postId: str,
|
||||||
postDM: bool, postReply: bool,
|
postDM: bool, postReply: bool,
|
||||||
followRequestsExist: bool,
|
followRequestsExist: bool,
|
||||||
likedBy: str, postCal: bool,
|
likedBy: str, published: str, postCal: bool,
|
||||||
postShare: bool, themeName: str) -> {}:
|
postShare: bool, themeName: str) -> {}:
|
||||||
"""Returns a json endpoint for the TTS speaker
|
"""Returns a json endpoint for the TTS speaker
|
||||||
"""
|
"""
|
||||||
|
@ -288,6 +288,7 @@ def _speakerEndpointJson(displayName: str, summary: str,
|
||||||
"summary": summary,
|
"summary": summary,
|
||||||
"content": content,
|
"content": content,
|
||||||
"say": sayContent,
|
"say": sayContent,
|
||||||
|
"published": published,
|
||||||
"imageDescription": imageDescription,
|
"imageDescription": imageDescription,
|
||||||
"detectedLinks": links,
|
"detectedLinks": links,
|
||||||
"id": postId,
|
"id": postId,
|
||||||
|
@ -433,6 +434,10 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str,
|
||||||
imageDescription += \
|
imageDescription += \
|
||||||
img['name'] + '. '
|
img['name'] + '. '
|
||||||
|
|
||||||
|
published = ''
|
||||||
|
if postJsonObject['object'].get('published'):
|
||||||
|
published = postJsonObject['object']['published']
|
||||||
|
|
||||||
summary = ''
|
summary = ''
|
||||||
if postJsonObject['object'].get('summary'):
|
if postJsonObject['object'].get('summary'):
|
||||||
if isinstance(postJsonObject['object']['summary'], str):
|
if isinstance(postJsonObject['object']['summary'], str):
|
||||||
|
@ -492,7 +497,7 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str,
|
||||||
detectedLinks, gender, postId,
|
detectedLinks, gender, postId,
|
||||||
postDM, postReply,
|
postDM, postReply,
|
||||||
followRequestsExist,
|
followRequestsExist,
|
||||||
likedBy,
|
likedBy, published,
|
||||||
postCal, postShare, themeName)
|
postCal, postShare, themeName)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue