mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-23 04:06:25 -04:00
+ 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…
x
Reference in New Issue
Block a user