mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Revert "try to replace html sniffing with chardet to fix ncc.html files with set encoding but strings that ignore that"
This reverts commit3a1be51a83. Revert "try to properly interpret ncc.html encoding (seems to be a bit weird / incorrect sometimes)" This reverts commitfac4415595.
This commit is contained in:
parent
b05acce22b
commit
52a0b61b97
5 changed files with 3 additions and 120 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue