mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 02:28:51 +02:00
Add support for XPS
This commit is contained in:
@@ -1397,7 +1397,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", ".mobi"}
|
||||
var types = []string{".pdf", ".xps", ".epub", ".mobi"}
|
||||
for _, t := range types {
|
||||
if strings.ToLower(filepath.Ext(f)) == t {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user