Add support for MOBI

This commit is contained in:
Milan Nikolic
2023-08-24 11:42:19 +02:00
parent c5902fb131
commit 0a3f4d6992
4 changed files with 6 additions and 6 deletions

View File

@@ -1379,7 +1379,7 @@ func (c *Convertor) isArchive(f string) bool {
// isDocument checks if file is document.
func (c *Convertor) isDocument(f string) bool {
var types = []string{".pdf", ".epub"}
var types = []string{".pdf", ".epub", ".mobi"}
for _, t := range types {
if strings.ToLower(filepath.Ext(f)) == t {
return true