Move Zahard from MMRCMS to MangaThemesia (#17225)
* Move Zahard from MMRCMS to MangaThemesia * Update multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> --------- Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
|
@ -0,0 +1,36 @@
|
|||
package eu.kanade.tachiyomi.extension.en.zahard
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.Request
|
||||
|
||||
class Zahard : MangaThemesia(
|
||||
"Zahard",
|
||||
"https://zahard.xyz",
|
||||
"en",
|
||||
mangaUrlDirectory = "/library",
|
||||
) {
|
||||
override val versionId = 2
|
||||
|
||||
override val supportsLatest = false
|
||||
|
||||
override val pageSelector = "div#chapter_imgs img"
|
||||
|
||||
override fun searchMangaNextPageSelector() = "a[rel=next]"
|
||||
|
||||
override fun chapterListSelector() = "#chapterlist > ul > a"
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
val url = baseUrl.toHttpUrl().newBuilder()
|
||||
.addPathSegment(mangaUrlDirectory.substring(1))
|
||||
.addQueryParameter("search", query)
|
||||
.addQueryParameter("page", page.toString())
|
||||
.build()
|
||||
|
||||
return GET(url, headers)
|
||||
}
|
||||
|
||||
override fun getFilterList() = FilterList()
|
||||
}
|
|
@ -126,6 +126,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
|||
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),
|
||||
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 10),
|
||||
SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 4),
|
||||
SingleLang("Zahard", "https://zahard.xyz", "en"),
|
||||
SingleLang("สดใสเมะ", "https://www.xn--l3c0azab5a2gta.com", "th", isNsfw = true, className = "Sodsaime", overrideVersionCode = 1),
|
||||
)
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ class MMRCMSGenerator : ThemeSourceGenerator {
|
|||
SingleLang("مانجا اون لاين", "https://onma.top", "ar", className = "onma"),
|
||||
SingleLang("Read Comics Online", "https://readcomicsonline.ru", "en"),
|
||||
SingleLang("Fallen Angels", "https://manga.fascans.com", "en", overrideVersionCode = 2),
|
||||
SingleLang("Zahard", "https://zahard.xyz", "en", overrideVersionCode = 2),
|
||||
SingleLang("Scan FR", "https://www.scan-fr.org", "fr", overrideVersionCode = 2),
|
||||
SingleLang("Scan VF", "https://www.scan-vf.net", "fr", overrideVersionCode = 1),
|
||||
SingleLang("Komikid", "https://www.komikid.com", "id"),
|
||||
|
|