lets try this instead
Signed-off-by: Chloe Carver-Brown <admin@twxtter.com>
This commit is contained in:
parent
dbb8c9b5d7
commit
efa6da6c56
|
@ -783,8 +783,10 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
if vnf["type"] == "Text": # Change the template based on tweet type
|
if vnf["type"] == "Text": # Change the template based on tweet type
|
||||||
template = "text.html"
|
template = "text.html"
|
||||||
if vnf["type"] == "Image":
|
if vnf["type"] == "Image":
|
||||||
|
print(" ➤ [ T ] vnf type is Image")
|
||||||
if vnf["images"][4] != "1":
|
if vnf["images"][4] != "1":
|
||||||
appNamePost = " - Image " + str(image+1) + "/" + str(vnf["images"][4])
|
appNamePost = " - Image " + str(image+1) + "/" + str(vnf["images"][4])
|
||||||
|
print(f" ➤ [ T ] Setting appNamePost to {appNamePost}")
|
||||||
image = vnf["images"][image]
|
image = vnf["images"][image]
|
||||||
if raw == True:
|
if raw == True:
|
||||||
template = "img.html"
|
template = "img.html"
|
||||||
|
@ -820,7 +822,7 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
user=vnf["uploader"],
|
user=vnf["uploader"],
|
||||||
video_link=video_link,
|
video_link=video_link,
|
||||||
color=color,
|
color=color,
|
||||||
appname=config['config']['appname']+appNamePost,
|
appname=f"{config['config']['appname']}{appNamePost}",
|
||||||
repo=config["config"]["repo"],
|
repo=config["config"]["repo"],
|
||||||
url=config["config"]["url"],
|
url=config["config"]["url"],
|
||||||
urlDesc=urlDesc,
|
urlDesc=urlDesc,
|
||||||
|
|
Reference in New Issue