Bugfixes and more tests

This commit is contained in:
Dylan
2024-05-02 19:15:14 +01:00
parent 06b932437a
commit 0858f6263b
7 changed files with 114 additions and 15 deletions

View File

@ -98,9 +98,11 @@ def getApiResponse(tweet,include_txt=False,include_zip=False):
if i["type"] != media_extended[0]["type"]:
sameMedia = False
break
else:
sameMedia = True
combinedMediaUrl = None
if sameMedia and media_extended[0]["type"] == "image":
if sameMedia and media_extended[0]["type"] == "image" and len(media) > 1:
host=config['config']['url']
combinedMediaUrl = f'{host}/rendercombined.jpg?imgs='
for i in media: