mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 02:28:51 +02:00
Add support for MOBI
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user