diff --git a/giphy.py b/giphy.py index 824f81e..86e49b8 100644 --- a/giphy.py +++ b/giphy.py @@ -80,8 +80,8 @@ async def handler(self, evt: MessageEvent, search_term: str) -> None: try: gif_link = data["data"]["images"]["original"]["url"] info = {} - info["width"] = data["data"]["images"]["original"]["width"] - info["height"] = data["data"]["images"]["original"]["height"] + info["width"] = int(data["data"]["images"]["original"]["width"]) + info["height"] = int(data["data"]["images"]["original"]["height"]) info["mime"] = "image/gif" # this shouldn't really change except Exception as e: await evt.respond("Blip bloop... Something is wrecked up here!") @@ -109,8 +109,8 @@ async def handler(self, evt: MessageEvent, search_term: str) -> None: )["gif"] gif_link = gif["url"] info = {} - info["width"] = gif["dims"][0] - info["height"] = gif["dims"][1] + info["width"] = int(gif["dims"][0]) + info["height"] = int(gif["dims"][1]) info["mime"] = "image/gif" # this shouldn't really change except Exception as e: await evt.respond("Blip bloop... Something is wrecked up here!") diff --git a/maubot.yaml b/maubot.yaml index 9483363..c962389 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -9,7 +9,7 @@ maubot: 0.1.0 id: casavant.tom.giphy # A PEP 440 compliant version string. -version: 3.2.1 +version: 3.3.0 # The SPDX license identifier for the plugin. https://spdx.org/licenses/ # Optional, assumes all rights reserved if omitted.