From e357f3d04090b17ca8d82bca2b0de160776c7d91 Mon Sep 17 00:00:00 2001 From: Jordan Yoshihara Date: Thu, 30 Aug 2018 13:44:44 -0700 Subject: [PATCH] Updated constant mapping with epub --- le_utils/resources/formatlookup.json | 3 +++ le_utils/resources/presetlookup.json | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/le_utils/resources/formatlookup.json b/le_utils/resources/formatlookup.json index 3d21685..3e27976 100644 --- a/le_utils/resources/formatlookup.json +++ b/le_utils/resources/formatlookup.json @@ -8,6 +8,9 @@ "pdf": { "mimetype": "application/pdf" }, + "epub": { + "mimetype": "application/epub+zip" + }, "mp3": { "mimetype": ".mp3" }, diff --git a/le_utils/resources/presetlookup.json b/le_utils/resources/presetlookup.json index 2140a0a..3ecd940 100644 --- a/le_utils/resources/presetlookup.json +++ b/le_utils/resources/presetlookup.json @@ -65,6 +65,17 @@ "kind": "audio", "allowed_formats": ["png", "jpg", "jpeg"] }, + "epub": { + "readable_name": "ePub Document", + "multi_language": false, + "supplementary": false, + "thumbnail": false, + "subtitle": false, + "display": true, + "order": 1, + "kind": "document", + "allowed_formats": ["epub"] + }, "document": { "readable_name": "Document", "multi_language": false, @@ -72,7 +83,7 @@ "thumbnail": false, "subtitle": false, "display": true, - "order": 1, + "order": 2, "kind": "document", "allowed_formats": ["pdf"] },