1

Fix import of epwing dictionaries that have a lower-case CATALOGS file

This commit is contained in:
Alex Yatskov 2021-01-01 17:28:12 -08:00
parent 1172bc8b84
commit 81d97dd032

View File

@ -302,6 +302,11 @@ func detectFormat(path string) (string, error) {
if err == nil { if err == nil {
return "epwing", nil return "epwing", nil
} }
_, err = os.Stat(filepath.Join(path, "catalogs"))
if err == nil {
return "epwing", nil
}
} }
return "", errors.New("unrecognized dictionary format") return "", errors.New("unrecognized dictionary format")