New source: tr/Manga Kings (#802)

* feat: Add Manga Kings to mangathemesia

* feat: Add rate limit

* fix: Fix chapter dates

* fix: Fix some selectors in manga details page

* chore: Add source icon
This commit is contained in:
Claudemirovsky 2024-01-30 09:30:03 -03:00 committed by GitHub
parent c350d6f718
commit 29ab93bd8b
7 changed files with 34 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,33 @@
package eu.kanade.tachiyomi.extension.tr.mangakings
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.HttpUrl.Companion.toHttpUrl
import java.text.SimpleDateFormat
import java.util.Locale
class MangaKings : MangaThemesia(
"Manga Kings",
"https://mangakings.com.tr",
"tr",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("tr")),
) {
override val client = network.client.newBuilder()
.rateLimitHost(baseUrl.toHttpUrl(), 2)
.build()
// =========================== Manga Details ============================
override val seriesArtistSelector = ".fmed b:contains(Çizer) + span"
override val seriesAuthorSelector = ".fmed b:contains(Yazar) + span"
override val seriesStatusSelector = ".tsinfo .imptdt:contains(Durum) i"
override val seriesTypeSelector = ".tsinfo .imptdt:contains(Türü) a"
override fun String?.parseStatus() = when {
this == null -> SManga.UNKNOWN
contains("Devam Ediyor", true) -> SManga.ONGOING
contains("Tamamlandı", true) || contains("bitti", true) -> SManga.COMPLETED
else -> SManga.UNKNOWN
}
}

View File

@ -76,6 +76,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Luminous Scans", "https://luminousscans.net", "en", overrideVersionCode = 1),
SingleLang("Lunar Scans", "https://lunarscan.org", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Magus Manga", "https://magusmanga.com", "en", overrideVersionCode = 1),
SingleLang("Manga Kings", "https://mangakings.com.tr", "tr"),
SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1),
SingleLang("Mangacim", "https://www.mangacim.com", "tr", overrideVersionCode = 1),
SingleLang("MangaKita", "https://mangakita.id", "id", overrideVersionCode = 2),