You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a few parser i had the problem that the description of the book isn't in the dom but easily accessible.
Example:
88xiaoshuo.net
URL of dom: https://m.88xiaoshuo.net/Partlist/98781/
URL of info: https://m.88xiaoshuo.net/book/98781/
genesistudio.com
In the api request to get all Chapter is a description for the book with author etc. in the json response.
How can i get the info for example from an api request?
I think a possible solution would be to make
getInformationEpubItemChildNodes()
extractDescription()
async
to use
let data = (await HttpClient.fetchJson(dom.baseURI + "/__data.json")).json;
and extract the description.
The text was updated successfully, but these errors were encountered:
@gamebeaker
The downside of that is you'd need to update all existing implementations with an async. It's just a search/replace exercise, but numerous hits. Tedious, but not difficult.
The other obvious option (to me) is to create async versions of the two functions. And only provide an implementation if required.
Which is how getInformationEpubItemChildNodes() is used. E.g.
Note, most implementations of getInformationEpubItemChildNodes() just get the summary, so they're duplicating extractDescription(). And, in fact, the base implementation of extractDescription is now to delegate to getInformationEpubItemChildNodes().
In a few parser i had the problem that the description of the book isn't in the dom but easily accessible.
Example:
88xiaoshuo.net
URL of dom: https://m.88xiaoshuo.net/Partlist/98781/
URL of info: https://m.88xiaoshuo.net/book/98781/
genesistudio.com
In the api request to get all Chapter is a description for the book with author etc. in the json response.
How can i get the info for example from an api request?
I think a possible solution would be to make
getInformationEpubItemChildNodes()
extractDescription()
async
to use
let data = (await HttpClient.fetchJson(dom.baseURI + "/__data.json")).json;
and extract the description.
The text was updated successfully, but these errors were encountered: