function for converting epub to mobi files

This commit is contained in:
MorganGeek 2020-07-23 07:30:19 +02:00
parent 709ccc709c
commit bb0370ae7b

View File

@ -352,8 +352,12 @@ function mouse() {
# Conversion # Conversion
function epub2pdf() { function epub2pdf() {
local epub_file_name=$(echo $1 | sed 's/.epub$/.pdf/') local output_file_name=$(echo $1 | sed 's/.epub$/.pdf/')
ebook-convert "$1" "$epub_file_name" ebook-convert "$1" "$output_file_name"
}
function epub2mobi() {
local output_file_name=$(echo $1 | sed 's/.epub$/.mobi/')
ebook-convert "$1" "$output_file_name"
} }
# Information gathering # Information gathering