From 67744337909513b9a1cc3b2bc9a689c4d593410a Mon Sep 17 00:00:00 2001 From: OncePunchedMan <64155117+OncePunchedMan@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:24:57 +0000 Subject: [PATCH] fix tritiniascans (#5526) --- src/all/madara/build.gradle | 2 +- .../extension/all/madara/MadaraFactory.kt | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/all/madara/build.gradle b/src/all/madara/build.gradle index 6bd4c38e0..2e4cfdc23 100644 --- a/src/all/madara/build.gradle +++ b/src/all/madara/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Madara (multiple sources)' pkgNameSuffix = "all.madara" extClass = '.MadaraFactory' - extVersionCode = 174 + extVersionCode = 175 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt index 536cde5e0..c3a4cf942 100644 --- a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt +++ b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt @@ -353,21 +353,7 @@ class MangaClash : Madara( dateFormat = SimpleDateFormat("MM/dd/yy", Locale.US) ) -class TritiniaScans : Madara("TritiniaScans", "https://tritiniaman.ga", "en") { - // site is a bit broken - override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga/index_m_orderby=views.html", headers) - override fun popularMangaNextPageSelector(): String? = null - override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/index_m_orderby=latest.html", headers) - override fun latestUpdatesNextPageSelector(): String? = null - private val imageRegex = Regex(""""(http[^"]*)"""") - override fun pageListParse(document: Document): List { - val script = document.select("#chapter_preloaded_images").firstOrNull()?.data() - ?: throw Exception("chapter_preloaded_images not found") - return imageRegex.findAll(script).asIterable().mapIndexed { i, mr -> - Page(i, "", mr.groupValues[1].replace("\\", "")) - } - } -} +class TritiniaScans : Madara("TritiniaScans", "https://tritinia.com", "en") class CopyPasteScan : Madara("CopyPasteScan", "https://copypastescan.xyz", "es")