[KSGroupScans] Migrate from FMReader to Madara (#15332)

This commit is contained in:
FlaminSarge 2023-02-27 11:33:29 -07:00 committed by GitHub
parent c3dfbcdebe
commit ecd137d21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 9 additions and 19 deletions

View File

@ -1,18 +0,0 @@
package eu.kanade.tachiyomi.extension.en.ksgroupscans
import eu.kanade.tachiyomi.multisrc.fmreader.FMReader
import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element
class KSGroupScans : FMReader("KSGroupScans", "https://ksgroupscans.com", "en") {
override fun popularMangaNextPageSelector() = ".pagination > li:last-child > a:not(.active)"
override fun chapterFromElement(element: Element, mangaTitle: String): SChapter {
return SChapter.create().apply {
element.select(chapterUrlSelector).first()!!.let {
setUrlWithoutDomain(it.attr("abs:href"))
name = element.select(".chapter-name").text()
}
}
}
}

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,8 @@
package eu.kanade.tachiyomi.extension.en.ksgroupscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
class KSGroupScans : Madara("KSGroupScans", "https://ksgroupscans.com", "en") {
override val versionId = 2
override val useNewChapterEndpoint = true
}

View File

@ -16,7 +16,6 @@ class FMReaderGenerator : ThemeSourceGenerator {
MultiLang("Manhwa18.net", "https://manhwa18.net", listOf("en", "ko"), className = "Manhwa18NetFactory", isNsfw = true),
SingleLang("Epik Manga", "https://www.epikmanga.com", "tr"),
SingleLang("KissLove", "https://klmanga.com", "ja", overrideVersionCode = 2),
SingleLang("KSGroupScans", "https://ksgroupscans.com", "en", overrideVersionCode = 2),
SingleLang("Manga-TR", "https://manga-tr.com", "tr", className = "MangaTR", overrideVersionCode = 1),
SingleLang("ManhuaRock", "https://manhuarock.net", "vi", overrideVersionCode = 1),
SingleLang("Manhwa18", "https://manhwa18.com", "en", isNsfw = true, overrideVersionCode = 2),

View File

@ -164,6 +164,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 2),
SingleLang("KlikManga", "https://klikmanga.id", "id", overrideVersionCode = 2),
SingleLang("KomikRame", "https://komikra.me", "id"),
SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"),
SingleLang("Kun Manga", "https://kunmanga.com", "en", overrideVersionCode = 1),
SingleLang("Lady Manga", "https://ladymanga.com", "en"),
SingleLang("Lala Manga", "https://lalamanga.com", "en", isNsfw = true),