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

Domain update #7370

Merged
merged 2 commits into from
Feb 1, 2025
Merged

Domain update #7370

merged 2 commits into from
Feb 1, 2025

Conversation

Hellkaros
Copy link
Contributor

Closes #7364
Closes #7338
Closes #7251

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

override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor { chain ->
val originalRequest = chain.request()
chain.proceed(originalRequest).let { response ->
if (response.code == 403) {
response.close()
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manhuaga.com").build())
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manhua-ga.org").build())
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manhua-ga.org").build())
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", baseUrl).build())

also reformat it a bit on newlines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix it.

@AwkwardPeak7 AwkwardPeak7 merged commit 2021a63 into keiyoushi:main Feb 1, 2025
2 checks passed
@Hellkaros Hellkaros deleted the domain branch February 1, 2025 14:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manhuaga changed url Cerberus Series change url Onma / Online Manga (AR): New domain URL
2 participants