Revert "try to replace html sniffing with chardet to fix ncc.html files with set encoding but strings that ignore that"

This reverts commit 3a1be51a83.

Revert "try to properly interpret ncc.html encoding (seems to be a bit weird / incorrect sometimes)"

This reverts commit fac4415595.
This commit is contained in:
Toni Barth 2026-02-08 03:33:56 +01:00
parent b05acce22b
commit 52a0b61b97
5 changed files with 3 additions and 120 deletions

View file

@ -12,7 +12,7 @@ class DaisyFileScanner {
* @param {Object} bookMetadata
*/
async scanBookDaisyFile(daisyLibraryFileObj, bookMetadata, audioFiles = []) {
const htmlText = await readTextFile(daisyLibraryFileObj.metadata.path, { detectEncoding: true, isHtml: true })
const htmlText = await readTextFile(daisyLibraryFileObj.metadata.path)
const daisyMetadata = htmlText ? parseDaisyMetadata(htmlText) : null
if (daisyMetadata) {
for (const key in daisyMetadata) {