Kagane: Update API Endpoint#13353
Conversation
|
PR changed to draft because there's still problem when fetching the image and causing error 404. Highly possible that the URL isn't constructed correctly |
|
You can check my work on the Filters in https://github.com/D-Brox/extensions-source/tree/kagane-drm , it's mostly on the last commit. I've also dealt with malformed URLs on the previous commit, so you can take a look there too. My branch works, however only with a drm-proxy server. |
|
Thanks for the feedback. I'll try to check at your work as soon as I could get into my PC. |
|
@D-Brox, I'm merging changes from your work (literally using most of your work since it's much better). The functionality for reading, fetching data, and filtering is now working. The only downside is that if you try to open a filter field for genre, tags, or source, it will take a long time to load the data (around 20 seconds for tags), and could potentially crash the Mihon app. I don't know how to optimize it, but I'll make the PR open anyway and try to work on it if possible. Here's the logs that might show the issues with filters |
|
Does it still need the drm proxy server for this build ? I get http error 400 after building the apk |
|
I tested it without using the DRM Proxy Server, and I managed to have it able to read, fetch data, and filter working. Could you provide me with the HTTP request & response from the Mihon debugger? |
|
I'm using suwayomi, so it seems the problem is only connected with suwayomi. The only thing I scraped up from the log is: 12:30:02.078 [DefaultDispatcher-worker-1] DEBUG eu.kanade.tachiyomi.network.NetworkHelper -- <-- 400 https://yuzuki.kagane.org/api/v2/search/series?page=0&size=35&sort=updated_at%2Cdesc&scanlations=true (99ms, 168-byte body) |
|
@FumoRin The old extension delayed the filters by making you press reset to load them, so maybe you can bring back that. I removed it because I just wanted to get it working first |
|
@Kickunio I made the drm proxy server specifically with Suwayomi in mind lmao I think they don't have support for POST requests in their cloudflare interceptor, so that's possibly it |
|
The extension loads faster now. It's not as exact logic from the old extension because there's POST request to get the source list (I don't know why they do that ¯_(ツ)_/¯ ). The filter field for genre and source still has a bit of a delay when opened, but not as bad as tags' 30+ seconds load time, since it's handling a 190kb JSON file now, compared to 3-4kb for genre and source. But overall, the extension is ready |
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/Dto.kt
Outdated
Show resolved
Hide resolved
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/ImageInterceptor.kt
Outdated
Show resolved
Hide resolved
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/Kagane.kt
Outdated
Show resolved
Hide resolved
|
some problem after a long test, it looks like the token isn't able to refresh automatically after expired. So I need to fix that first before merging it |
|
After a long test by myself, I could say that the extension is ready to be merged. I changed the tags to use text input to make it not render all of the tags' checkboxes (I figured that might be the cause of the 30+ seconds delay). The only problem now is the artist and author mapping, since the source still hasn't included one. I'll just let someone in the future work on it when the source fills the |
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/Dto.kt
Outdated
Show resolved
Hide resolved
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/Kagane.kt
Outdated
Show resolved
Hide resolved
src/en/kagane/src/eu/kanade/tachiyomi/extension/en/kagane/Kagane.kt
Outdated
Show resolved
Hide resolved
|
There is a source name in title issue, instead the source name in title, there is [Null]. |
|
For me, on mihon and on suwayomi there's HTTP error 400 when go for latest, popular or filter tabs in source. Webview works ok on both. |
|
I'm seeing this on the Komikku app:
Should I create another issue? |
Same, you might want to go to advance and clear cookies and Webview data cause it works for me after that |
|
You're having issues because you're still dealing with the old version of the extension, migrate your series to the new version of the extension. That will fix this problem of yours. |
|
If you guys are having cloudflare issues, clear cookies and webview data and use the default mihon user agent (the one you have by default when you fresh install the app). Fixed my issue and now chapters load just fine. There is still the problem with the source names being [null]. |
|
I have updated my extension, that's the first thing I did 😅.
Ok so I refreshed the webview and cookies data, and updated the extension, but now it is saying this:
How do I 'refresh the chapter list'? |
This comment was marked as spam.
This comment was marked as spam.
Then Did you migrate your Manhwa to the new version of extension [kagane], it's as adding it new. |
|
Yea, you need to remove them from the library and add them again. All the ones that were in the library prior to the update are broken, they need to be re-added |
Oh ok so I have to re-add all of the manwha. |
|
If I were you, I would wait a bit until they fix the [null] issue. Otherwise, you may need to re-add them again after if they break again :) |
Instead of adding them again, just go to the Manhwa page, press the 3 points, press migrate, choose Kegane extension, then select the same Manhwa. |
|
@Qwerty0uiop and @FiddleMySticks ok thanks I understand. |
I did everything but it still says failed to bypass cloudfare 🥲 |
Try this, if you did migrate the Manhwa to the new version of the extension, too. open webview to open the Manhwa page once. |
Thank you So much. It worked |
|
The chapters are still not working for me. I've tried clearing both the cookies and webview data. I've also checked whether they work on other titles which are added to the library after the update (they dont) |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
|
This is a closed/merged PR, there's existing requests & a new PR. Read the issue request + comments for whatever issue you're experiencing, otherwise wait patiently & quietly for a fix if you don't have useful information for contributors to figure out a fix. |


Warning
This PR still needs to be worked on. Most of the changes need to be reviewed first, since I relied on AI to guide me
This PR will close #13330. The extension is tested only to get the most popular and latest manga and read them. Filters need to be worked on, but I have something to do tomorrow. Expect some late follow-up
Checklist:
extVersionCodevalue inbuild.gradlefor individual extensionsoverrideVersionCodeorbaseVersionCodeas needed for all multisrc extensionsisNsfw = trueflag inbuild.gradlewhen appropriateidif a source's name or language were changedweb_hi_res_512.pngwhen adding a new extension