kodjodevf / mangayomi-extensions

Source extensions for the Mangayomi app.
Apache License 2.0
87 stars 21 forks source link

Aniwave extension not working properly #40

Closed KellZek closed 5 months ago

KellZek commented 6 months ago

Source information

Aniwave 0.0.65

Source language

Englisn

Steps to reproduce

  1. Go on the extension page (Browse > Aniwave)
  2. Open any anime page

Expected behavior

It should load all available episodes and list them

Actual behavior

The following error gets returned

Screenshot_2024-04-03-20-10-29-150_com kodjodevf mangayomi

Mangayomi version

Beta (0.2.0)

Device

Xiaomi Redmi Note 11 Pro

Other details

The problem also includes the animes saved in the library. The webview and the main pages work fine, but opening any anime page sometimes makes the main page not load at all

Acknowledgements

kodematthieu commented 6 months ago

Found the issue, it's at #L180. It tries to parse HTML response as JSON and throws syntax error as a result. It appears that ${baseUrl}/ajax/server/list/${ids}?$vrf has a response status code of 403 - Forbidden, and so it's response body was unexpectedly HTML. This is probably an API change of Aniwave

kodjodevf commented 5 months ago

Fixed!