+ was not able to deal with relative path in libraries

This commit is contained in:
kelson42 2012-06-27 10:18:41 +00:00
parent c2cd40d067
commit e0cf824188

View File

@ -454,10 +454,10 @@ int main(int argc, char **argv) {
for ( itr = booksIds.begin(); itr != booksIds.end(); ++itr ) { for ( itr = booksIds.begin(); itr != booksIds.end(); ++itr ) {
libraryManager.getBookById(*itr, currentBook); libraryManager.getBookById(*itr, currentBook);
string humanReadableId = currentBook.getHumanReadableIdFromPath(); string humanReadableId = currentBook.getHumanReadableIdFromPath();
zimPath = currentBook.path; zimPath = currentBook.pathAbsolute;
if (!zimPath.empty()) { if (!zimPath.empty()) {
indexPath = currentBook.indexPath; indexPath = currentBook.indexPathAbsolute;
/* Instanciate the ZIM file handler */ /* Instanciate the ZIM file handler */
kiwix::Reader *reader = NULL; kiwix::Reader *reader = NULL;