forked from Ivasoft/opds-proxy
feat: kepub conversions
Working *.epub to *.kepub.epub file conversions when using a Kobo reader. Updated docker file to include `kepubify` to convert to kepub. If not available the file is just sent without conversion.
This commit is contained in:
14
convert/convert.go
Normal file
14
convert/convert.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package convert
|
||||
|
||||
const (
|
||||
MOBI_MIME = "application/x-mobipocket-ebook"
|
||||
EPUB_MIME = "application/epub+zip"
|
||||
)
|
||||
|
||||
type Converter interface {
|
||||
// Whether or not the converter is available
|
||||
// Usually based on the availability of the underlying tool
|
||||
Available() bool
|
||||
// Convert the input file to the output file
|
||||
Convert(input string, output string) error
|
||||
}
|
||||
Reference in New Issue
Block a user