mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 03:33:24 +01:00
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:
parent
c350d6f718
commit
29ab93bd8b
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 |
@ -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
|
||||
}
|
||||
}
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user