|
|
|
@ -108,6 +108,7 @@ public class ZimImporter extends Thread implements Importer {
|
|
|
|
|
|
|
|
|
|
// read all documents
|
|
|
|
|
for (int i = 0; i < this.file.header_entryCount; i++) {
|
|
|
|
|
try {
|
|
|
|
|
if (this.abort) break;
|
|
|
|
|
DirectoryEntry de = this.reader.getDirectoryInfo(i);
|
|
|
|
|
if (!(de instanceof ZIMReader.ArticleEntry)) continue;
|
|
|
|
@ -160,6 +161,10 @@ public class ZimImporter extends Thread implements Importer {
|
|
|
|
|
String error = sb.toIndexer(response);
|
|
|
|
|
if (error != null) ConcurrentLog.info("ZimImporter", "error parsing: " + error);
|
|
|
|
|
this.recordCnt++;
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
// catch any error that could stop the importer
|
|
|
|
|
ConcurrentLog.info("ZimImporter", "error loading: " + e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
ConcurrentLog.info("ZimImporter", "error reading: " + e.getMessage());
|
|
|
|
|