diff --git a/synadm/cli/media.py b/synadm/cli/media.py index 207d5c6..ec77ee9 100644 --- a/synadm/cli/media.py +++ b/synadm/cli/media.py @@ -274,7 +274,8 @@ def media_delete_cmd(helper, media_id, before_days, before, before_ts, click.echo("Combination of --media-id and --size not valid.") media_deleted = None elif media_id: - server_name = helper.retrieve_homeserver_name(helper.config["base_url"]) + server_name = helper.retrieve_homeserver_name( + helper.config["base_url"]) media_deleted = helper.api.media_delete(server_name, media_id) else: media_deleted = helper.api.media_delete_by_date_or_size(