|
|
|
@ -477,6 +477,7 @@ int main(int argc, char **argv) {
|
|
|
|
vector<string> libraryPaths = kiwix::split(libraryPath, ";");
|
|
|
|
vector<string> libraryPaths = kiwix::split(libraryPath, ";");
|
|
|
|
vector<string>::iterator itr;
|
|
|
|
vector<string>::iterator itr;
|
|
|
|
for ( itr = libraryPaths.begin(); itr != libraryPaths.end(); ++itr ) {
|
|
|
|
for ( itr = libraryPaths.begin(); itr != libraryPaths.end(); ++itr ) {
|
|
|
|
|
|
|
|
if (!(*itr).empty()) {
|
|
|
|
bool retVal = false;
|
|
|
|
bool retVal = false;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
retVal = libraryManager.readFile(*itr, true);
|
|
|
|
retVal = libraryManager.readFile(*itr, true);
|
|
|
|
@ -489,6 +490,7 @@ int main(int argc, char **argv) {
|
|
|
|
exit(1);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Check if the library is not empty (or only remote books)*/
|
|
|
|
/* Check if the library is not empty (or only remote books)*/
|
|
|
|
if (libraryManager.getBookCount(true, false)==0) {
|
|
|
|
if (libraryManager.getBookCount(true, false)==0) {
|
|
|
|
|