Replace youtube links on announces

main
Bob Mottram 2020-01-15 22:31:04 +00:00
parent 5193d850e7
commit c7d41c24a7
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ from utils import saveJson
from capabilities import getOcapFilename from capabilities import getOcapFilename
from capabilities import capabilitiesUpdate from capabilities import capabilitiesUpdate
from media import attachMedia from media import attachMedia
from media import replaceYouTube
from content import addHtmlTags from content import addHtmlTags
from content import replaceEmojiFromTags from content import replaceEmojiFromTags
from auth import createBasicAuthHeader from auth import createBasicAuthHeader
@ -2741,6 +2742,7 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \
rejectAnnounce(announceFilename) rejectAnnounce(announceFilename)
return None return None
postJsonObject=announcedJson postJsonObject=announcedJson
replaceYouTube(postJsonObject)
if saveJson(postJsonObject,announceFilename): if saveJson(postJsonObject,announceFilename):
return postJsonObject return postJsonObject
return None return None