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

Added source multimanga #3631

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

Conversation

heagan01
Copy link

#3622 (previous pull) (I moved the branch so the pull request closed...)

closes #3498

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

src/ru/multimanga/build.gradle Outdated Show resolved Hide resolved
src/ru/multimanga/build.gradle Outdated Show resolved Hide resolved
Comment on lines +35 to +41
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl", headers)
}

override fun latestUpdatesRequest(page: Int): Request {
return GET("$baseUrl", headers)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is only like 5 items you are selecting from the front page for popular, it would be better to set supportslatest to false and return the whole page through popular alone

also, add the next page to the request, because currently you are requesting the same page over and over again

// chapter.name = urlElement.text()

val chapter = SChapter.create()
val loopbackUrl = urlElement.attr("href").removeRange(urlElement.attr("href").length - 3, urlElement.attr("href").length)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response.request.url.toString() will give you the current url.

also for future reference, check out StringKt documentation
it have methods like substringBeforeLast

return GET(page.imageUrl!!, newHeaders)
}

private class Genre(name: String, val id: String = name) : Filter.TriState(name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use CheckBox filter. since you are not using exclude and include states

@AwkwardPeak7 AwkwardPeak7 marked this pull request as draft July 4, 2024 08:52
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.

MultiManga
2 participants