manga-download / hakuneko

Manga & Anime Downloader for Linux, Windows & MacOS
https://hakuneko.download
The Unlicense
4.41k stars 453 forks source link

Fix klm website change #7105

Closed realabertian closed 1 month ago

realabertian commented 1 month ago

fix #7104 The webpage dynamically generates a 'token' on the previous page through some unknown method, and it uses the 'token' to access the next-level page. The token is one-time use. I analyzed it for a long time and couldn't figure it out.

MikeZeDev commented 1 month ago

i think there is an easier solution.

https://github.com/keiyoushi/extensions-source/pull/3208

the endpoint is just randomized but ends with a fixed extension

realabertian commented 1 month ago

Changes are not ideal and are prone to fail because of a race condition. We don't wait for the chapter/page gathering XHR request to gather the html nodes.

Solution :

Make the request ourselves and parse the html like before. Random endpoints can be used, like in the Mihon extension i mentioned.

Got it, I'll handle it