mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
try to properly interpret ncc.html encoding (seems to be a bit weird / incorrect sometimes)
This commit is contained in:
parent
6c9bf8c2bd
commit
687e62e1fa
5 changed files with 132 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ class DaisyFileScanner {
|
|||
* @param {Object} bookMetadata
|
||||
*/
|
||||
async scanBookDaisyFile(daisyLibraryFileObj, bookMetadata, audioFiles = []) {
|
||||
const htmlText = await readTextFile(daisyLibraryFileObj.metadata.path)
|
||||
const htmlText = await readTextFile(daisyLibraryFileObj.metadata.path, { detectEncoding: true, isHtml: true })
|
||||
const daisyMetadata = htmlText ? parseDaisyMetadata(htmlText) : null
|
||||
if (daisyMetadata) {
|
||||
for (const key in daisyMetadata) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue