From c7d41c24a7bf5dd91d1fd635bdf163280f1165b7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 15 Jan 2020 22:31:04 +0000 Subject: [PATCH] Replace youtube links on announces --- posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts.py b/posts.py index 95bb9be8b..51f754ff7 100644 --- a/posts.py +++ b/posts.py @@ -45,6 +45,7 @@ from utils import saveJson from capabilities import getOcapFilename from capabilities import capabilitiesUpdate from media import attachMedia +from media import replaceYouTube from content import addHtmlTags from content import replaceEmojiFromTags from auth import createBasicAuthHeader @@ -2741,6 +2742,7 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \ rejectAnnounce(announceFilename) return None postJsonObject=announcedJson + replaceYouTube(postJsonObject) if saveJson(postJsonObject,announceFilename): return postJsonObject return None