diff --git a/apis/api_helper.py b/apis/api_helper.py index 69531d9eb..3bf1e0101 100644 --- a/apis/api_helper.py +++ b/apis/api_helper.py @@ -307,6 +307,8 @@ async def process_download(download_item: media_table): await main_helper.write_data( response, download_path, progress_bar ) + timestamp = download_item.created_at.timestamp() + await main_helper.format_image(download_path, timestamp) download_item.size = response.content_length download_item.downloaded = True diff --git a/helpers/main_helper.py b/helpers/main_helper.py index f5a699a97..ee125c392 100644 --- a/helpers/main_helper.py +++ b/helpers/main_helper.py @@ -108,7 +108,7 @@ def format_media_set(media_set): return merged -def format_image(filepath, timestamp): +async def format_image(filepath: str, timestamp: float): if json_global_settings["helpers"]["reformat_media"]: while True: try: