bool OEBPlugin::readMetaInfo(Book &book) const { const ZLFile &file = book.file(); shared_ptr<ZLInputStream> lock = file.inputStream(); const ZLFile opfFile = this->opfFile(file); bool code = OEBMetaInfoReader(book).readMetaInfo(opfFile); if (code && book.language().empty()) { shared_ptr<ZLInputStream> oebStream = new OEBTextStream(opfFile); detectLanguage(book, *oebStream); } return code; }
bool OEBPlugin::readMetainfo(Book &book) const { const ZLFile &file = book.file(); return OEBMetaInfoReader(book).readMetainfo(opfFile(file)); }