Kiryuu: use new url, move factory/multisrc (#7128)

* Kiryuu: use new url, move factory

- change to kiryuu.id url
- move multisrc from wpmangastream to wpmangareader 
- fix indent in wpmangareader generator

* fix conflict

* fix 2
This commit is contained in:
Riztard Lanthorn 2021-05-24 20:01:45 +07:00 committed by GitHub
parent 9f9ee6d4ff
commit 7d05f193fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 26 additions and 30 deletions

View File

@ -0,0 +1,4 @@
dependencies {
implementation project(':lib-ratelimit')
}

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

@ -1,13 +1,11 @@
package eu.kanade.tachiyomi.extension.id.kiryuu
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
import java.util.concurrent.TimeUnit
class Kiryuu : WPMangaStream("Kiryuu", "https://kiryuu.co", "id") {
class Kiryuu : WPMangaReader("Kiryuu", "https://kiryuu.id", "id") {
// Formerly "Kiryuu (WP Manga Stream)"
override val id = 3639673976007021338
@ -18,10 +16,4 @@ class Kiryuu : WPMangaStream("Kiryuu", "https://kiryuu.co", "id") {
.readTimeout(30, TimeUnit.SECONDS)
.addNetworkInterceptor(rateLimitInterceptor)
.build()
override fun pageListParse(document: Document): List<Page> {
return document.select("div#readerarea img").map { it.attr("abs:src") }
.filterNot { it.substringAfterLast("/").contains(Regex("""(filerun|photothumb\.db)""")) }
.mapIndexed { i, image -> Page(i, "", image) }
}
}

View File

@ -13,25 +13,26 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
override val sources = listOf(
SingleLang("KomikMama", "https://komikmama.net", "id"),
SingleLang("MangaKita", "https://mangakita.net", "id"),
SingleLang("Ngomik", "https://ngomik.net", "id"),
SingleLang("Sekaikomik", "https://www.sekaikomik.fun", "id", isNsfw = true, overrideVersionCode = 4),
SingleLang("Davey Scans", "https://daveyscans.com/", "id"),
SingleLang("Mangasusu", "https://mangasusu.co.in", "id", isNsfw = true),
SingleLang("TurkToon", "https://turktoon.com", "tr"),
SingleLang("Gecenin Lordu", "https://geceninlordu.com/", "tr", overrideVersionCode = 1),
SingleLang("Flame Scans", "https://flamescans.org", "en", overrideVersionCode = 2),
SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"),
SingleLang("PMScans", "https://reader.pmscans.com", "en"),
SingleLang("Skull Scans", "https://www.skullscans.com", "en"),
SingleLang("Luminous Scans", "https://www.luminousscans.com", "en"),
SingleLang("Azure Scans", "https://azuremanga.com", "en"),
SingleLang("Seafoam Scans", "https://seafoamscans.com", "en"),
SingleLang("GS Nation", "https://gs-nation.fr", "fr", overrideVersionCode = 1),
SingleLang("YugenMangas", "https://yugenmangas.com", "es"),
SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true)
)
SingleLang("Kiryuu", "https://kiryuu.id", "id"),
SingleLang("KomikMama", "https://komikmama.net", "id"),
SingleLang("MangaKita", "https://mangakita.net", "id"),
SingleLang("Ngomik", "https://ngomik.net", "id"),
SingleLang("Sekaikomik", "https://www.sekaikomik.fun", "id", isNsfw = true, overrideVersionCode = 4),
SingleLang("Davey Scans", "https://daveyscans.com/", "id"),
SingleLang("Mangasusu", "https://mangasusu.co.in", "id", isNsfw = true),
SingleLang("TurkToon", "https://turktoon.com", "tr"),
SingleLang("Gecenin Lordu", "https://geceninlordu.com/", "tr", overrideVersionCode = 1),
SingleLang("Flame Scans", "https://flamescans.org", "en", overrideVersionCode = 2),
SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"),
SingleLang("PMScans", "https://reader.pmscans.com", "en"),
SingleLang("Skull Scans", "https://www.skullscans.com", "en"),
SingleLang("Luminous Scans", "https://www.luminousscans.com", "en"),
SingleLang("Azure Scans", "https://azuremanga.com", "en"),
SingleLang("Seafoam Scans", "https://seafoamscans.com", "en"),
SingleLang("GS Nation", "https://gs-nation.fr", "fr", overrideVersionCode = 1),
SingleLang("YugenMangas", "https://yugenmangas.com", "es"),
SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true)
)
companion object {
@JvmStatic

View File

@ -33,7 +33,6 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
SingleLang("KomikRu", "https://komikru.com", "id"),
SingleLang("GURU Komik", "https://gurukomik.com", "id"),
SingleLang("Shea Manga", "https://sheamanga.my.id", "id"),
SingleLang("Kiryuu", "https://kiryuu.co", "id"),
SingleLang("Komik AV", "https://komikav.com", "id"),
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 3), // make it from v0 to v3 to force update user who still use old standalone ext, they will need to migrate
SingleLang("West Manga", "https://westmanga.info", "id"),