Rename to disambiguate

master
Bob Mottram 2019-08-30 12:39:55 +01:00
parent 406bec1e86
commit 4739caad73
1 changed files with 3 additions and 3 deletions

View File

@ -1208,7 +1208,7 @@ def addEmbeddedAudio(content: str) -> str:
content+='</audio>'
return content
def addEmbeddedVideo(content: str,width=400,height=300) -> str:
def addEmbeddedVideoFromSites(content: str,width=400,height=300) -> str:
"""Adds embedded videos
"""
if '>vimeo.com/' in content:
@ -1512,7 +1512,7 @@ def individualPostAsHtml(baseDir: str, \
if not postJsonObject['object']['sensitive']:
contentStr=postJsonObject['object']['content']+attachmentStr
contentStr=addEmbeddedVideo(contentStr)
contentStr=addEmbeddedVideoFromSites(contentStr)
contentStr=addEmbeddedAudio(contentStr)
else:
postID='post'+str(createPassword(8))
@ -1526,7 +1526,7 @@ def individualPostAsHtml(baseDir: str, \
contentStr+='<button class="cwButton" onclick="showContentWarning('+"'"+postID+"'"+')">SHOW MORE</button>'
contentStr+='<div class="cwText" id="'+postID+'">'
contentStr+=postJsonObject['object']['content']+attachmentStr
contentStr=addEmbeddedVideo(contentStr)
contentStr=addEmbeddedVideoFromSites(contentStr)
contentStr=addEmbeddedAudio(contentStr)
contentStr+='</div>'