Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
bool OEBPlugin::readMetainfo(Book &book) const {
	const ZLFile &file = book.file();
	return OEBMetaInfoReader(book).readMetainfo(opfFile(file));
}