forked from indymedia/epicyon
Replace youtube links on announces
parent
5193d850e7
commit
c7d41c24a7
2
posts.py
2
posts.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue