🔧 Adding methods for comicinfo.xml detection/extraction

This commit is contained in:
2022-02-25 22:27:19 -08:00
parent fdc1acd1ad
commit 36d18d4846
5 changed files with 94 additions and 150 deletions

View File

@@ -35,9 +35,9 @@ export const convertXMLToJSON = (xmlPayload) => {
trim: true,
normalizeTags: true,
});
const xml = fs.readFileSync(__dirname + "/comicinfo.xml", "utf8");
return parser
.parseStringPromise(xml)
.parseStringPromise(xmlPayload)
.then((result) => {
return result;
})