Skip to content

Commit c098203

Browse files
zLuckKingvetleledaal
authored andcommitted
MangaLivre: dont use Madara Load More (#14323)
* Fix Cloudflare bypass by adding sec-fetch headers Manga Livre is blocking Mihon's WebView requests via Cloudflare TLS fingerprint detection. Adding sec-fetch and sec-ch-ua headers makes requests look more like a real browser. Firefox bypasses Cloudflare without cf_clearance, suggesting these headers help distinguish legitimate browser traffic. Library updates work partially with Edge UA but Explore tab fails completely. * Fix formatting for spotless check * Use GET requests for browse endpoint to avoid Cloudflare POST blocking Changed LoadMoreStrategy from Always to Never to use GET requests instead of POST to /wp-admin/admin-ajax.php. Testing shows POST requests to this endpoint return 403 from Cloudflare for Brazilian IPs. * style: apply spotless formatting * fix: correct file ending and remove old path * required changes --------- Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
1 parent cb5ebe2 commit c098203

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pt/mangalivre/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ext {
33
extClass = '.MangaLivre'
44
themePkg = 'madara'
55
baseUrl = 'https://mangalivre.tv'
6-
overrideVersionCode = 13
6+
overrideVersionCode = 14
77
}
88

99
apply from: "$rootDir/common.gradle"

src/pt/mangalivre/src/eu/kanade/tachiyomi/extension/pt/mangalivre/MangaLivre.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MangaLivre :
2626
ConfigurableSource {
2727

2828
override val id: Long = 2834885536325274328
29-
override val useLoadMoreRequest = LoadMoreStrategy.Always
29+
override val useLoadMoreRequest = LoadMoreStrategy.Never
3030
override val baseUrl by lazy { preferences.getString(BASE_URL_PREF, super.baseUrl)!! }
3131

3232
private val preferences by lazy { getPreferences() }

0 commit comments

Comments
 (0)