Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

SMCodesP
Copy link
Contributor

@SMCodesP SMCodesP commented Jan 4, 2025

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:

  • Updated extVersionCode value in build.gradle for individual extensions
  • Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Added the isNsfw = true flag in build.gradle when appropriate
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension

@Hellkaros

This comment was marked as off-topic.

@SMCodesP
Copy link
Contributor Author

SMCodesP commented Jan 4, 2025

@SMCodesP acho melhor deixar isso em off, senão o dono da lura vai mexer no código de novo. É só ficar atualizando teu repo de branch lura pra quem quiser .. aquele dono da scan é doido.

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é.

@@ -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"
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@SMCodesP SMCodesP requested a review from vetleledaal January 11, 2025 14:30
@crowrvo

This comment was marked as off-topic.

@Hellkaros

This comment was marked as off-topic.

@crowrvo

This comment was marked as off-topic.

@vetleledaal

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lura caiu de novo
4 participants