From 421ca56e08d0ba30e5d6ebd1e8fa3005e4f73203 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 18 Oct 2023 14:08:32 -0700 Subject: [PATCH] Add IMSCP format preset. --- le_utils/constants/format_presets.py | 4 ++++ le_utils/resources/presetlookup.json | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/le_utils/constants/format_presets.py b/le_utils/constants/format_presets.py index df20260..119fc3a 100644 --- a/le_utils/constants/format_presets.py +++ b/le_utils/constants/format_presets.py @@ -72,6 +72,9 @@ QTI_THUMBNAIL = "qti_thumbnail" QTI_THUMBNAIL_READABLE = "QTI Thumbnail" +IMSCP_ZIP = "imscp_zip" +IMSCP_ZIP_READABLE = "IMSCP Zip" + SLIDESHOW_IMAGE = "slideshow_image" SLIDESHOW_IMAGE_READABLE = "Slideshow Image" @@ -114,6 +117,7 @@ (SLIDESHOW_IMAGE, SLIDESHOW_IMAGE_READABLE), (SLIDESHOW_THUMBNAIL, SLIDESHOW_THUMBNAIL_READABLE), (SLIDESHOW_MANIFEST, SLIDESHOW_MANIFEST_READABLE), + (IMSCP_ZIP, IMSCP_ZIP_READABLE), ) diff --git a/le_utils/resources/presetlookup.json b/le_utils/resources/presetlookup.json index a16c80a..5e8e027 100644 --- a/le_utils/resources/presetlookup.json +++ b/le_utils/resources/presetlookup.json @@ -239,6 +239,18 @@ "allowed_formats": ["png", "jpg", "jpeg"], "convertible_formats": [] }, + "imscp_zip": { + "readable_name": "IMSCP Zip", + "multi_language": false, + "supplementary": false, + "thumbnail": false, + "subtitle": false, + "display": true, + "order": 1, + "kind": "html5", + "allowed_formats": ["zip"], + "convertible_formats": [] + }, "h5p": { "readable_name": "H5P", "multi_language": false,