diff --git a/mastodon/input.py b/mastodon/input.py --- a/mastodon/input.py +++ b/mastodon/input.py @@ -1,4 +1,3 @@ -import asyncio import json import re from dataclasses import dataclass, field @@ -155,7 +154,7 @@ blobs: list[Blob] = [] for media in status.get("media_attachments", []): self.log.info("Downloading '%s'...", media["url"]) - blob = download_blob(media["url"], media.get("alt"), client=self.http) + blob = download_blob(media["url"], media.get("description"), client=self.http) if not blob.is_ok(): self.log.error( "Skipping '%s': failed to download attachment. %s", @@ -268,5 +267,5 @@ except TimeoutError as e: self.log.warning("Connection timeout: '%s'", e) except Exception as e: self.log.error("Unexpected error: '%s'", e, exc_info=True) - + self.log.info("Reconnecting to '%s'...", self.streaming_url)