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' extClass = '.Mangalink'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://manga-link.com' baseUrl = 'https://manga-link.com'
overrideVersionCode = 1 overrideVersionCode = 2
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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