-
Notifications
You must be signed in to change notification settings - Fork 549
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
Fix luratoon error to load pages #6972
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Também cogitei essa hipótese, mas sinceramente aquele cara muda o site cada 7 dias, como tu falou ele é doido, nesse código aí não contém a solução de como burlar a proteção dele, é só um wrapper em cima do código de verdade, só atualizei por orgulho mesmo, de um jeito ou de outro ele vai atualizar o site. Tinha feito umas alterações pra suportar as alterações antigas dele, deixei só no meu repositório, como pode ver pelo histórico de commits, ele mudou mesmo sem eu ter envido para cá, aqui pelo menos dou uma idéia para os outros contribuintes, claro deixa mais fácil pra ele descobrir o que eu fiz e fazer alguma alteração minima que vai quebrar tudo, mas fazer o que né. |
src/pt/randomscan/src/eu/kanade/tachiyomi/extension/pt/randomscan/LuraToon.kt
Outdated
Show resolved
Hide resolved
@@ -128,18 +133,18 @@ class LuraToon : HttpSource(), ConfigurableSource { | |||
private fun chapterFromElement(manga: SManga, capitulo: Capitulo) = SChapter.create().apply { | |||
val capSlug = capitulo.slug.trimStart('/') | |||
val mangaUrl = manga.url.trimEnd('/').trimStart('/') | |||
setUrlWithoutDomain("/api/obra/$mangaUrl/$capSlug") | |||
url = "http://62.146.183.244:81/?manga=$mangaUrl&cap=$capSlug" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think including an IP is a good idea. Can this be gathered from the site?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think including an IP is a good idea. Can this be gathered from the site?
It wouldn't be possible using the main domain, this IP is my server, it's a request without even sending headers, I believe there wouldn't be any problems, but if necessary I can try to put a lets encrypt to have ssl, and if necessary I would have to hire a domain, I imagine it would be a complicated process for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On this IP, there is an HTTP service running that performs the process of retrieving images from the website. I was unable to implement this service in Kotlin, and given the structure of the project, I don't think it would even be possible, or it would be a big problem.
…can/LuraToon.kt Co-authored-by: Vetle Ledaal <[email protected]>
The current problem with this solution is that it’s a workaround and will probably fail again at some point. Additionally, it takes around 1 minute and 10 seconds to list all the images in a chapter. This means you have to wait this entire time before the images start loading, which is tedious. If anyone has a better solution, please feel free to share. I tried reverse engineering the encrypted images again, but the decryption method has changed. I’m not sure if the issue was with unzipping the files or if the decryption itself failed. So, I deleted most of the old code and rewrote it using a different approach.
Closes #6468
Checklist:
extVersionCode
value inbuild.gradle
for individual extensionsoverrideVersionCode
orbaseVersionCode
as needed for all multisrc extensionsisNsfw = true
flag inbuild.gradle
when appropriateid
if a source's name or language were changedweb_hi_res_512.png
when adding a new extension