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:
parent
b88fa034fc
commit
9a8d11aeda
4
epub.js
4
epub.js
@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user