Поправка бага (не показывалось имя автора для не-fb2 файлов)
This commit is contained in:
@@ -147,6 +147,11 @@ class BookPage extends BasePage {
|
|||||||
title: bookInfo.book.title || 'Без названия',
|
title: bookInfo.book.title || 'Без названия',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//author bookInfo
|
||||||
|
if (bookInfo.book.author) {
|
||||||
|
e.author = bookInfo.book.author.split(',').map(a => ({name: a}));
|
||||||
|
}
|
||||||
|
|
||||||
e['dc:language'] = bookInfo.book.lang;
|
e['dc:language'] = bookInfo.book.lang;
|
||||||
e['dc:format'] = fileFormat;
|
e['dc:format'] = fileFormat;
|
||||||
|
|
||||||
@@ -172,7 +177,8 @@ class BookPage extends BasePage {
|
|||||||
const infoObj = parser.bookInfo();
|
const infoObj = parser.bookInfo();
|
||||||
|
|
||||||
if (infoObj.titleInfo) {
|
if (infoObj.titleInfo) {
|
||||||
if (infoObj.titleInfo.author.length) {
|
//author fb2Info
|
||||||
|
if (!e.author && infoObj.titleInfo.author.length) {
|
||||||
e.author = infoObj.titleInfo.author.map(a => ({name: a}));
|
e.author = infoObj.titleInfo.author.map(a => ({name: a}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user