Unverified Commit fe2d6880 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

don't use default image/jp2 mimetype if remote image

Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent bae3a63e
Pipeline #20946 passed with stages
in 1 minute and 44 seconds
......@@ -113,7 +113,7 @@ def _extract_dig_obj_vals(msg, access_status) -> dict:
return_values['duration'] = duration
return_values['type'] = msg['isDistributedOn']
if 'hasMimeType' in msg:
if return_values['type'] == 'image':
if return_values['type'] == 'image' and not _is_remote_file(msg):
mimetype = 'image/jp2'
mimetype = msg['hasMimeType']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment