Skip to content

Commit 4c14f86

Browse files
committed
Code formatting
1 parent 14ea55f commit 4c14f86

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/flibustaOpdsApiHelper.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class FlibustaOpdsApiHelper {
5454
|| link['@_type'] === 'image/png',
5555
);
5656

57-
5857
if (isNil(result)) {
5958
return undefined;
6059
}
@@ -127,16 +126,14 @@ class FlibustaOpdsApiHelper {
127126
public async getFlibustaOpdsEntry(url: string): Promise<Nullable<OpdsSearchResult>> {
128127
return this.axiosInstance.get<string>(url)
129128
.then((response) => {
130-
// const parsingOptions = {
131-
// ignoreAttributes: false,
132-
// unpairedTags: ['hr', 'br', 'link', 'meta'],
133-
// stopNodes: ['*.pre', '*.script'],
134-
// processEntities: true,
135-
// htmlEntities: true,
136-
// };
137-
const parser = new XMLParser({});
138-
console.log(response.data);
139-
// return new Promise(res => res(1));
129+
const parsingOptions = {
130+
ignoreAttributes: false,
131+
unpairedTags: ['hr', 'br', 'link', 'meta'],
132+
stopNodes: ['*.pre', '*.script'],
133+
processEntities: true,
134+
htmlEntities: true,
135+
};
136+
const parser = new XMLParser(parsingOptions);
140137

141138
return parser.parse(response.data);
142139
})

0 commit comments

Comments
 (0)