From b2a334bc084c2e8bab40e8688d2467083fae64a4 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 8 May 2022 21:21:52 +0200 Subject: [PATCH] Add steps to get files from .epub mangas --- arch-config/scripts/pieces/manga-extract-epub.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 arch-config/scripts/pieces/manga-extract-epub.sh diff --git a/arch-config/scripts/pieces/manga-extract-epub.sh b/arch-config/scripts/pieces/manga-extract-epub.sh new file mode 100644 index 00000000..7e43b2db --- /dev/null +++ b/arch-config/scripts/pieces/manga-extract-epub.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail + +# 1. extract .epub +# 2. images under "(folder name)/OEBPS/image" +# 3. rename images to "pageXXX.(ext)" +# 4. move to "(folder name)" +# 5. delete folders "META-INF", "OEBPS" and file "mimetype"