Merge pull request #20 from lyricalpaws/main

lets try this instead
This commit is contained in:
Chloe 2022-05-26 21:45:58 +01:00 committed by GitHub
commit 864483bf1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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,