mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-25 13:19:59 -04:00
Updated Kiwix::Manager class to accept origID as the last optional parameter, so as not to break existing tools which use Kiwix::Manager
This commit is contained in:
parent
ed53a9fdec
commit
b198e56717
@ -217,7 +217,7 @@ int main(int argc, char **argv) {
|
|||||||
origID=hexUUID(tempArray);
|
origID=hexUUID(tempArray);
|
||||||
}
|
}
|
||||||
//std::cout<<"\nORIGID: "<<origID;
|
//std::cout<<"\nORIGID: "<<origID;
|
||||||
string bookId = libraryManager.addBookFromPathAndGetId(zimPath, zimPathToSave, url,origID, false);
|
string bookId = libraryManager.addBookFromPathAndGetId(zimPath, zimPathToSave, url, false,origID);
|
||||||
|
|
||||||
if (!bookId.empty()) {
|
if (!bookId.empty()) {
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ int main(int argc, char **argv) {
|
|||||||
cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl;
|
cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!libraryManager.addBookFromPath(zimPath, zimPath, "","", false)) {
|
if (!libraryManager.addBookFromPath(zimPath, zimPath, "", false,"")) {
|
||||||
cerr << "Unable to add the ZIM file '" << zimPath << "' to the internal library." << endl;
|
cerr << "Unable to add the ZIM file '" << zimPath << "' to the internal library." << endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
} else if (!indexPath.empty()) {
|
} else if (!indexPath.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user