Support for cbr documents

This commit is contained in:
2020-02-22 13:11:19 -05:00
parent d19a75926b
commit 398f1aead4
12 changed files with 85 additions and 9 deletions

View File

@@ -149,6 +149,13 @@ void parse(void *arg) {
if (doc_buf != buf && doc_buf != NULL) {
free(doc_buf);
}
} else if (is_cbr(doc.mime)) {
void *cbr_buf = read_all(job, (char *) buf, bytes_read);
parse_cbr(cbr_buf, doc.size, &doc);
if (cbr_buf != buf && cbr_buf != NULL) {
free(cbr_buf);
}
}
//Parent meta