Closed liliakai closed 4 months ago
these lines https://github.com/bellingcat/auto-archiver/blob/9eb39943c7c99a6316ff8d1c9ae3371377736c5e/src/auto_archiver/storages/s3.py#L54-L59 would do that for S3, local/google-drive storage is less relevant, unless you mean mimetype somewhere else?
And it gets set on S3 stored metadata objects.
I mean in the metadata stored in the db rather than s3
A small gripe, but nice to have for consistency.
Using config
formatter: html_formatter
, the final media on an archive is an html page generated by the orchestrator. In practice I find that other media objects have a correctly set_mimetype
property, but not the one from html_formatter. Seems like core/media.py should set the right mimetype based on filename. I think it just never gets called for the final media.