-
Notifications
You must be signed in to change notification settings - Fork 946
Refactor ColaManga to use WebView for page loading #9694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Replaces the previous deobfuscation and key mapping logic with a WebView-based approach for loading and decrypting manga pages. Adds a new webview-script.js asset for image extraction and communication with the app. Integrates random user agent and data image interceptors, updates preferences, and improves error handling and internationalization for timeouts and script loading failures.
adds delayed WebView cleanup
|
Note: debug for JavaScript part |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
|
Will take a look tomorrow. |
lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt
Outdated
Show resolved
Hide resolved
|
All request changes resolved. |
reduce differences
The index of pagesMap is no longer equal to the page index
|
Now the pages that have been read will be cleared, and CG will not be triggered continuously because of the large amount of memory usage. |
|
It's hard to sync the status between the webview and the app. Before all bugs are fixed, mark it draft. |
|
The loading failure caused by state synchronization issues has been fixed. However, there is no guarantee that the WebView will be destroyed after the chapter has been fully loaded. |
Replaces the previous deobfuscation and key mapping logic with a WebView-based approach for loading and decrypting manga pages. Adds a new webview-script.js asset for image extraction and communication with the app. Integrates data image interceptors and improves error handling for timeouts and script loading failures.
Closes #9286
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