Skip to content

Softkomik(ID): Add support manga/manhwa with login required#14499

Open
ar21-jh wants to merge 7 commits intokeiyoushi:mainfrom
ar21-jh:softkomik-support-auth
Open

Softkomik(ID): Add support manga/manhwa with login required#14499
ar21-jh wants to merge 7 commits intokeiyoushi:mainfrom
ar21-jh:softkomik-support-auth

Conversation

@ar21-jh
Copy link
Copy Markdown
Contributor

@ar21-jh ar21-jh commented Apr 3, 2026

  • some manga/manhwa with genre ecchi or mature required login.
  • session api changed again
  • replace get session from cookie to webview because the cookie encrypted xD

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

@ar21-jh ar21-jh marked this pull request as draft April 4, 2026 04:51
@ar21-jh ar21-jh marked this pull request as ready for review April 4, 2026 13:24
)

@Serializable
data class BearerTokenDto(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't use data class

Suggested change
data class BearerTokenDto(
class BearerTokenDto(

While you are following the pattern already used in this file, it would be better to update those to be regular classes too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

override fun pageListRequest(chapter: SChapter): Request = GET("$baseUrl${chapter.url}", rscHeaders)

override fun pageListParse(response: Response): List<Page> {
val isRequiredLogin = response.request.url.toString().contains(requiredLoginSuffix)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check against HttpUrl.fragment instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines +421 to +423
wv.settings.javaScriptEnabled = true
wv.settings.domStorageEnabled = true
wv.settings.userAgentString = headers["User-Agent"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Disable images?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@ar21-jh ar21-jh marked this pull request as draft April 5, 2026 04:45
@ar21-jh ar21-jh marked this pull request as ready for review April 5, 2026 05:35
@ar21-jh
Copy link
Copy Markdown
Contributor Author

ar21-jh commented Apr 5, 2026

Their session logic keeps changing every time I fix it.

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.

2 participants