@@ -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