From 61c9312e280a10e6f533627879a2d97a177df333 Mon Sep 17 00:00:00 2001 From: Barbara Hui Date: Fri, 6 Feb 2026 14:39:07 -0800 Subject: [PATCH] Content harvester: allow for periods in root filename --- content_harvester/by_record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content_harvester/by_record.py b/content_harvester/by_record.py index 4cec843c..99b964bd 100644 --- a/content_harvester/by_record.py +++ b/content_harvester/by_record.py @@ -356,7 +356,7 @@ def create_media_component( derivative_filepath = derivatives.make_jp2(media_tmp_filepath) if derivative_filepath: jp2_destination_filename = ( - f"{media_dest_filename.split('.')[0]}.jp2") + f"{os.path.splitext(media_dest_filename)[0]}.jp2") content_s3_filepath = upload_content( derivative_filepath, f"jp2/{collection_id}/{jp2_destination_filename}"