Merge pull request #18 from lyricalpaws/main

kabapray that this fixes the number issue
This commit is contained in:
Chloe 2022-05-26 21:27:08 +01:00 committed by GitHub
commit 71ac108907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -783,10 +783,8 @@ 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}")
if vnf["images"][5] != "1":
appNamePost = " - Image " + str(image+1) + "/" + str(vnf["images"][5])
image = vnf["images"][image]
if raw == True:
template = "img.html"