fix Cloudflare protect for some sources (#1458)

cloudflare protect
This commit is contained in:
mohamedotaku 2024-02-22 19:46:47 +01:00 committed by Draff
parent a4e00cedbe
commit cb23787606
8 changed files with 8 additions and 7 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Mangalink'
themePkg = 'madara'
baseUrl = 'https://manga-link.com'
overrideVersionCode = 1
overrideVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -22,7 +22,7 @@ class Mangalink :
ConfigurableSource {
override val chapterUrlSuffix = ""
override val useLoadMoreRequest = LoadMoreStrategy.Always
private val defaultBaseUrl = "https://manga-link.com"
override val baseUrl by lazy { getPrefBaseUrl() }

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaLionz'
themePkg = 'madara'
baseUrl = 'https://mangalionz.org'
overrideVersionCode = 2
overrideVersionCode = 3
}
apply from: "$rootDir/common.gradle"

View File

@ -5,6 +5,7 @@ import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Element
class MangaLionz : Madara("MangaLionz", "https://mangalionz.org", "ar") {
override val useLoadMoreRequest = LoadMoreStrategy.Always
override fun popularMangaFromElement(element: Element): SManga {
val manga = SManga.create()

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaSpark'
themePkg = 'madara'
baseUrl = 'https://mangaspark.org'
overrideVersionCode = 4
overrideVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -11,6 +11,6 @@ class MangaSpark : Madara(
dateFormat = SimpleDateFormat("d MMMM، yyyy", Locale("ar")),
) {
override val chapterUrlSuffix = ""
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val useNewChapterEndpoint = false
}

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaStarz'
themePkg = 'madara'
baseUrl = 'https://mangastarz.org'
overrideVersionCode = 5
overrideVersionCode = 6
}
apply from: "$rootDir/common.gradle"

View File

@ -11,6 +11,6 @@ class MangaStarz : Madara(
dateFormat = SimpleDateFormat("d MMMM، yyyy", Locale("ar")),
) {
override val chapterUrlSuffix = ""
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val useNewChapterEndpoint = false
}