Работа над BookInfoDialog

This commit is contained in:
Book Pauk
2022-11-10 14:56:25 +07:00
parent 79e6ca2d27
commit 81d8b476a5
4 changed files with 160 additions and 15 deletions

View File

@@ -70,7 +70,7 @@ class Fb2Helper {
let coverExt = '';
if (coverImage) {
const coverAttrs = coverImage.attrs();
const href = coverAttrs['l:href'];
const href = coverAttrs[`${parser.xlinkNS}:href`];
let coverType = coverAttrs['content-type'];
coverType = (coverType == 'image/jpg' || coverType == 'application/octet-stream' ? 'image/jpeg' : coverType);
coverExt = (coverType == 'image/png' ? '.png' : '.jpg');