Added cover to Metadata

If the meta tag contains the "cover" keyword, add "cover" to the
metadata with the content as the value
This commit is contained in:
Colin 2017-04-26 07:32:14 -05:00
parent b88fa034fc
commit 9a8d11aeda

View File

@ -396,6 +396,10 @@ EPub.prototype.parseMetadata = function (metadata) {
if (meta['#'] && meta['@'].property) {
this.metadata[meta['@'].property] = meta['#'];
}
if(meta.name && meta.name =="cover"){
this.metadata[meta.name] = meta.content;
}
}, this);
};