diff --git a/gallery_dl/extractor/mastodon.py b/gallery_dl/extractor/mastodon.py index 0d2cded525d..dcdf82a2485 100644 --- a/gallery_dl/extractor/mastodon.py +++ b/gallery_dl/extractor/mastodon.py @@ -44,6 +44,11 @@ def items(self): del status["media_attachments"] status["instance"] = self.instance + if "@" in status["account"]["acct"]: + status["remote_instance"] = status["account"]["acct"].split('@')[1] + else: + status["remote_instance"] = None + status["tags"] = [tag["name"] for tag in status["tags"]] status["date"] = text.parse_datetime( status["created_at"][:19], "%Y-%m-%dT%H:%M:%S")