diff --git a/tmdb/tmdb.py b/tmdb/tmdb.py index b00f293..9564f33 100644 --- a/tmdb/tmdb.py +++ b/tmdb/tmdb.py @@ -75,13 +75,14 @@ class TmdbBot(Plugin): async def send_image(self, evt: MessageEvent, title, image) -> None: if image: - mxc_uri = await self.client.upload_media(image) + mxc_uri = await self.client.upload_media(image, mime_type='image/jpg') content = MediaMessageEventContent( msgtype=MessageType.IMAGE, body=f"Image {title}", url=f"{mxc_uri}", info=ImageInfo(mimetype='image/jpg')) await evt.respond(content) + #await self.client.send_image(evt.room_id, url=mxc_uri, info=ImageInfo(mimetype='image/jpg')) def construct_html_message(self, movie, overview_length = 200, cast_length = 3) -> str: if len(movie.overview) > overview_length: