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

HiveScans/Toons: Fix PageListParse #7640

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

Conversation

Creepler13
Copy link
Contributor

Checklist:

Closes #7531

  • Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • 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

@@ -20,6 +22,14 @@ class HiveScans : Iken(
}
.build()

val PageRegex = Regex("""https://storage.\w+.\w+/public//upload/series/(\w+)/(\w+)/(\d+).webp""")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the double slash intentional? Is that something that should be optional in case they fix it?

Unrelated, but we should really have some kind of helper functions to parse next.js' RSC.

Copy link
Contributor

@bapeey bapeey Feb 14, 2025

Choose a reason for hiding this comment

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

Also regex will fail if the slug of the series contains special characters.

\\\"images\\\":(\[.*?]).*?nextChapter

this regex captures the entire array; you will need to unescape and deserialize it.

@Creepler13
Copy link
Contributor Author

Not sure if there is a better way to unescape, but it works.

And just ignore the Force Push, i pressed a button i shouldn't have

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.

Hive Toon: No Pages Found
3 participants