From efa6da6c56b96b3ee4349048b90a6b8baf02e783 Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Thu, 26 May 2022 21:45:35 +0100 Subject: [PATCH] lets try this instead Signed-off-by: Chloe Carver-Brown --- twitfix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index ba9d8b8..d2c0c29 100644 --- a/twitfix.py +++ b/twitfix.py @@ -783,8 +783,10 @@ def embed(video_link, vnf, image, raw=False): if vnf["type"] == "Text": # Change the template based on tweet type template = "text.html" if vnf["type"] == "Image": + print(" ➤ [ T ] vnf type is Image") if vnf["images"][4] != "1": appNamePost = " - Image " + str(image+1) + "/" + str(vnf["images"][4]) + print(f" ➤ [ T ] Setting appNamePost to {appNamePost}") image = vnf["images"][image] if raw == True: template = "img.html" @@ -820,7 +822,7 @@ def embed(video_link, vnf, image, raw=False): user=vnf["uploader"], video_link=video_link, color=color, - appname=config['config']['appname']+appNamePost, + appname=f"{config['config']['appname']}{appNamePost}", repo=config["config"]["repo"], url=config["config"]["url"], urlDesc=urlDesc,