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>
This commit is contained in:
Vetle Ledaal 2023-07-22 22:00:34 +02:00 committed by GitHub
parent b57ae0f8bd
commit 852a689669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 37 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -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()
}

View File

@ -126,6 +126,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1), SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 10), SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 10),
SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 4), 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), SingleLang("สดใสเมะ", "https://www.xn--l3c0azab5a2gta.com", "th", isNsfw = true, className = "Sodsaime", overrideVersionCode = 1),
) )

View File

@ -15,7 +15,6 @@ class MMRCMSGenerator : ThemeSourceGenerator {
SingleLang("مانجا اون لاين", "https://onma.top", "ar", className = "onma"), SingleLang("مانجا اون لاين", "https://onma.top", "ar", className = "onma"),
SingleLang("Read Comics Online", "https://readcomicsonline.ru", "en"), SingleLang("Read Comics Online", "https://readcomicsonline.ru", "en"),
SingleLang("Fallen Angels", "https://manga.fascans.com", "en", overrideVersionCode = 2), 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 FR", "https://www.scan-fr.org", "fr", overrideVersionCode = 2),
SingleLang("Scan VF", "https://www.scan-vf.net", "fr", overrideVersionCode = 1), SingleLang("Scan VF", "https://www.scan-vf.net", "fr", overrideVersionCode = 1),
SingleLang("Komikid", "https://www.komikid.com", "id"), SingleLang("Komikid", "https://www.komikid.com", "id"),