Breaking change in data returned by mangadex.org api
mftb0 opened this issue · 1 comments
mftb0 commented
For some chapter requests mangadex.org has started returning a url fragment in the Chapter.server property (just the beginning of the url path). This breaks some of mangadex-full-api's calls like Chapter.fill(). Example - https://mangadex.org/api/chapter/591097.
Specifically when the Chapter.pages array is populated in Chapter.parse() you end up with relative urls. Not sure what the best fix for mangadex-full-api would be. I was able to work around it by just iterating over Chapter.pages and if the value started with "/", prepending the value returned by Chapter.getFullURL("foo").
Thanks again, mangadex-full-api, continues to be very useful, and easy to work with.