From cb23787606471a93d7fba6282e6f5ed59fa21fe1 Mon Sep 17 00:00:00 2001 From: mohamedotaku Date: Thu, 22 Feb 2024 19:46:47 +0100 Subject: [PATCH] fix Cloudflare protect for some sources (#1458) cloudflare protect --- src/ar/mangalink/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ar/mangalink/Mangalink.kt | 2 +- src/ar/mangalionz/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ar/mangalionz/MangaLionz.kt | 1 + src/ar/mangaspark/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ar/mangaspark/MangaSpark.kt | 2 +- src/ar/mangastarz/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ar/mangastarz/MangaStarz.kt | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ar/mangalink/build.gradle b/src/ar/mangalink/build.gradle index 03350b9ac..fe5f83c4b 100644 --- a/src/ar/mangalink/build.gradle +++ b/src/ar/mangalink/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.Mangalink' themePkg = 'madara' baseUrl = 'https://manga-link.com' - overrideVersionCode = 1 + overrideVersionCode = 2 } apply from: "$rootDir/common.gradle" diff --git a/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/Mangalink.kt b/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/Mangalink.kt index 00a0e05be..2acea7ca3 100644 --- a/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/Mangalink.kt +++ b/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/Mangalink.kt @@ -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() } diff --git a/src/ar/mangalionz/build.gradle b/src/ar/mangalionz/build.gradle index de1228435..49fa4f71f 100644 --- a/src/ar/mangalionz/build.gradle +++ b/src/ar/mangalionz/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.MangaLionz' themePkg = 'madara' baseUrl = 'https://mangalionz.org' - overrideVersionCode = 2 + overrideVersionCode = 3 } apply from: "$rootDir/common.gradle" diff --git a/src/ar/mangalionz/src/eu/kanade/tachiyomi/extension/ar/mangalionz/MangaLionz.kt b/src/ar/mangalionz/src/eu/kanade/tachiyomi/extension/ar/mangalionz/MangaLionz.kt index 36a6cbbcc..80e41c518 100644 --- a/src/ar/mangalionz/src/eu/kanade/tachiyomi/extension/ar/mangalionz/MangaLionz.kt +++ b/src/ar/mangalionz/src/eu/kanade/tachiyomi/extension/ar/mangalionz/MangaLionz.kt @@ -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() diff --git a/src/ar/mangaspark/build.gradle b/src/ar/mangaspark/build.gradle index a3a55406b..2d04fa26b 100644 --- a/src/ar/mangaspark/build.gradle +++ b/src/ar/mangaspark/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.MangaSpark' themePkg = 'madara' baseUrl = 'https://mangaspark.org' - overrideVersionCode = 4 + overrideVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/ar/mangaspark/src/eu/kanade/tachiyomi/extension/ar/mangaspark/MangaSpark.kt b/src/ar/mangaspark/src/eu/kanade/tachiyomi/extension/ar/mangaspark/MangaSpark.kt index c909ea6db..7cb15a196 100644 --- a/src/ar/mangaspark/src/eu/kanade/tachiyomi/extension/ar/mangaspark/MangaSpark.kt +++ b/src/ar/mangaspark/src/eu/kanade/tachiyomi/extension/ar/mangaspark/MangaSpark.kt @@ -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 } diff --git a/src/ar/mangastarz/build.gradle b/src/ar/mangastarz/build.gradle index c7335ca62..a5902dc33 100644 --- a/src/ar/mangastarz/build.gradle +++ b/src/ar/mangastarz/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.MangaStarz' themePkg = 'madara' baseUrl = 'https://mangastarz.org' - overrideVersionCode = 5 + overrideVersionCode = 6 } apply from: "$rootDir/common.gradle" diff --git a/src/ar/mangastarz/src/eu/kanade/tachiyomi/extension/ar/mangastarz/MangaStarz.kt b/src/ar/mangastarz/src/eu/kanade/tachiyomi/extension/ar/mangastarz/MangaStarz.kt index 433401911..d9e315009 100644 --- a/src/ar/mangastarz/src/eu/kanade/tachiyomi/extension/ar/mangastarz/MangaStarz.kt +++ b/src/ar/mangastarz/src/eu/kanade/tachiyomi/extension/ar/mangastarz/MangaStarz.kt @@ -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 }