mirror of https://github.com/kiwix/libkiwix.git
+ better deal with accented paths
This commit is contained in:
parent
6959085e3c
commit
cf07bf827b
|
@ -256,17 +256,17 @@ namespace kiwix {
|
|||
|
||||
if (this->readBookFromPath(pathToOpen, book)) {
|
||||
|
||||
if (!pathToSave.empty() && pathToSave != pathToOpen) {
|
||||
book.path = pathToSave;
|
||||
book.pathAbsolute = pathToSave;
|
||||
}
|
||||
|
||||
if (!checkMetaData ||
|
||||
checkMetaData && !book.title.empty() && !book.language.empty() && !book.date.empty()) {
|
||||
book.url = url;
|
||||
library.addBook(book);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!pathToSave.empty() && pathToSave != pathToOpen) {
|
||||
book.path = pathToSave;
|
||||
book.pathAbsolute = pathToSave;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue