remove redundant imagecount
Signed-off-by: Chloe Carver-Brown <admin@twxtter.com>
This commit is contained in:
parent
9ca7083c3c
commit
70d214afdf
|
@ -755,7 +755,6 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
urlDesc = urllib.parse.quote(desc)
|
urlDesc = urllib.parse.quote(desc)
|
||||||
urlLink = urllib.parse.quote(video_link)
|
urlLink = urllib.parse.quote(video_link)
|
||||||
likeDisplay = "\n\n💖 " + str(vnf["likes"]) + " 🔁 " + str(vnf["rts"]) + "\n"
|
likeDisplay = "\n\n💖 " + str(vnf["likes"]) + " 🔁 " + str(vnf["rts"]) + "\n"
|
||||||
imagecount = "Twitter"
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if vnf["type"] == "":
|
if vnf["type"] == "":
|
||||||
|
@ -780,7 +779,6 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
vnf["rts"] = 0
|
vnf["rts"] = 0
|
||||||
vnf["time"] = 0
|
vnf["time"] = 0
|
||||||
print(" ➤ [ X ] Failed QRT check - old VNF object")
|
print(" ➤ [ X ] Failed QRT check - old VNF object")
|
||||||
|
|
||||||
appNamePost = ""
|
appNamePost = ""
|
||||||
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"
|
||||||
|
@ -788,8 +786,6 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
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])
|
||||||
image = vnf["images"][image]
|
image = vnf["images"][image]
|
||||||
if vnf["images"][4] != "1":
|
|
||||||
imagecount = "Twitter (" + vnf["images"][4] + " images in post)"
|
|
||||||
if raw == True:
|
if raw == True:
|
||||||
template = "img.html"
|
template = "img.html"
|
||||||
else:
|
else:
|
||||||
|
@ -821,7 +817,6 @@ def embed(video_link, vnf, image, raw=False):
|
||||||
vidurl=vnf["url"],
|
vidurl=vnf["url"],
|
||||||
desc=desc,
|
desc=desc,
|
||||||
pic=image,
|
pic=image,
|
||||||
imagecount=imagecount,
|
|
||||||
user=vnf["uploader"],
|
user=vnf["uploader"],
|
||||||
video_link=video_link,
|
video_link=video_link,
|
||||||
color=color,
|
color=color,
|
||||||
|
|
Reference in New Issue