esmero / strawberryfield

A Field of strawberries
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Normalize Pronom Output #315

Closed DiegoPino closed 5 months ago

DiegoPino commented 5 months ago

What?

Pronom's output format is strange. We need to process it better. (regular expression). After testing, this is on me. Not them. Instead of relaying on the direct output of pronom, doublecheck the output and normalize before returning it to our RAW JSON e.g

"flv:pronom": {
                "label": "Exchangeable Image File Format (Uncompressed)",
                "mimetype": "\/var\/www\/html\/studio.esmero.io\/private\/webform\/descriptive_metadata\/_sid_\/default.tif",
                "pronom_id": "info:pronom\/x-fmt\/387",
                "detection_type": "image\/tiff"
            },

@alliomeria FYI

DiegoPino commented 5 months ago

Solved via https://github.com/esmero/strawberryfield/commit/6d54fd90a94d8a977e3437850a16be9aa218a20c