From bd37268e7fa3bf022a72a035f45018c5ddc24d8c Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Fri, 1 Nov 2024 07:20:49 -0300 Subject: [PATCH] ResetScans: Migrate theme (#5794) * Migrate theme * Add latestFromHomePage and fix versionCode --- src/en/resetscans/build.gradle | 6 +++--- .../extension/en/resetscans/ResetScans.kt | 16 ++++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/en/resetscans/build.gradle b/src/en/resetscans/build.gradle index a2f8f7632..48e202077 100644 --- a/src/en/resetscans/build.gradle +++ b/src/en/resetscans/build.gradle @@ -1,9 +1,9 @@ ext { extName = 'Reset Scans' extClass = '.ResetScans' - themePkg = 'madara' - baseUrl = 'https://rspro.xyz' - overrideVersionCode = 6 + themePkg = 'fuzzydoodle' + baseUrl = 'https://reset-scans.xyz' + overrideVersionCode = 43 isNsfw = false } diff --git a/src/en/resetscans/src/eu/kanade/tachiyomi/extension/en/resetscans/ResetScans.kt b/src/en/resetscans/src/eu/kanade/tachiyomi/extension/en/resetscans/ResetScans.kt index c6cabb441..3cb347e26 100644 --- a/src/en/resetscans/src/eu/kanade/tachiyomi/extension/en/resetscans/ResetScans.kt +++ b/src/en/resetscans/src/eu/kanade/tachiyomi/extension/en/resetscans/ResetScans.kt @@ -1,17 +1,13 @@ package eu.kanade.tachiyomi.extension.en.resetscans -import eu.kanade.tachiyomi.multisrc.madara.Madara -import java.text.SimpleDateFormat -import java.util.Locale +import eu.kanade.tachiyomi.multisrc.fuzzydoodle.FuzzyDoodle -class ResetScans : Madara( +class ResetScans : FuzzyDoodle( "Reset Scans", - "https://rspro.xyz", + "https://reset-scans.xyz", "en", - dateFormat = SimpleDateFormat("MMM dd", Locale("en")), ) { + override val latestFromHomePage = true - override val useLoadMoreRequest = LoadMoreStrategy.Always - override val useNewChapterEndpoint = true - override fun chapterListSelector(): String = "li.wp-manga-chapter.free-chap" - override val chapterUrlSelector = "div > a" + // Moved from Madara to FuzzyDoodle + override val versionId = 2 }