Convert gifv to avif

This commit is contained in:
Dylan
2026-02-01 15:57:00 +00:00
parent d262fe1014
commit fb8abeb904
4 changed files with 107 additions and 62 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ def determineMediaToEmbed(tweetData,embedIndex = -1,convertGif = True):
#if gcApi == "local": # TODO
#gcApi = f"{config['config']['url']}/gifconvert"
vurl=media['originalUrl'] if 'originalUrl' in media else media['url']
media['url'] = gcApi + "/convert?url=" + vurl
media['url'] = gcApi + "/convert.avif?url=" + vurl
suffix += " • GIF"
media["suffix"] = suffix
return media