Changes QRT storage; Embeds qrt videos, closes #19

This commit is contained in:
Dylan
2022-10-08 23:26:44 +01:00
parent acd24a08c8
commit 2b3af43098
4 changed files with 87 additions and 44 deletions

View File

@ -4,11 +4,11 @@ tweetNotFound="Tweet not found."
tweetSuspended="This Tweet is from a suspended account."
def genLikesDisplay(vnf):
return ("\n\n💖 " + str(vnf['likes']) + " 🔁 " + str(vnf['rts']) + "\n")
return ("\n\n💖 " + str(vnf['likes']) + " 🔁 " + str(vnf['rts']))
def genQrtDisplay(qrt):
verifiedCheck = "☑️" if ('verified' in qrt and qrt['verified']) else ""
return ("\n─────────────\n ➤ QRT of " + qrt['handle'] + " (@" + qrt['screen_name'] + ")"+ verifiedCheck+":\n─────────────\n'" + qrt['desc'] + "'")
return ("\n─────────────\n ➤ QRT of " + qrt['uploader'] + " (@" + qrt['screen_name'] + ")"+ verifiedCheck+":\n─────────────\n'" + qrt['description'] + "'")
def genPollDisplay(poll):
pctSplit=10