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

[ru-Acomics] Fix parsing popular and search page #6611

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pavkazzz
Copy link

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

Closes #6120

Comment on lines +53 to +55
override fun popularMangaNextPageSelector(): String? {
TODO("Not yet implemented")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

either throw UnsupportedOperationException on set to empty string

popularMangaFromElement(element)
}

return MangasPage(mangas, true)
Copy link
Contributor

Choose a reason for hiding this comment

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

is there not some end page? maybe check number of entries on page and end page would have less.

setUrlWithoutDomain(attr("href") + "/about")
title = text()
}
}

override fun popularMangaNextPageSelector() = "span.button:not(:has(a)) + span.button > a"
override fun popularMangaNextPageSelector(): String? {
TODO("Not yet implemented")
Copy link
Contributor

Choose a reason for hiding this comment

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

You are looking for a.infinite-scroll after the last div.infinite-scroll-content > section.serial-card. That element only exists if there is more content to load. You can make it as advanced or basic as you want.

@AwkwardPeak7 AwkwardPeak7 marked this pull request as draft December 23, 2024 06:16
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.

AComics: Extension doesnt work
3 participants