fix adultwebtoon & hentaiwebtoon (#5679)

This commit is contained in:
AwkwardPeak7 2024-10-25 11:01:03 +05:00 committed by Draff
parent 996b1138d1
commit 5b7cfb5ca8
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 6 additions and 24 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.AdultWebtoon' extClass = '.AdultWebtoon'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://adultwebtoon.com' baseUrl = 'https://adultwebtoon.com'
overrideVersionCode = 3 overrideVersionCode = 4
isNsfw = true isNsfw = true
} }

View File

@ -2,10 +2,8 @@ package eu.kanade.tachiyomi.extension.en.adultwebtoon
import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.FormBody import okhttp3.FormBody
import okhttp3.Request import okhttp3.Request
import org.jsoup.nodes.Element
class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") { class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") {
override val mangaSubString = "adult-webtoon" override val mangaSubString = "adult-webtoon"
@ -15,15 +13,8 @@ class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") {
override val useLoadMoreRequest = LoadMoreStrategy.Never override val useLoadMoreRequest = LoadMoreStrategy.Never
override fun popularMangaNextPageSelector() = "a.next" override fun popularMangaNextPageSelector() = "a.next"
override fun searchMangaSelector() = "li.movie-item > a" override fun searchMangaSelector() = popularMangaSelector()
override fun searchMangaNextPageSelector() = "a.next" override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaFromElement(element: Element): SManga {
return SManga.create().apply {
setUrlWithoutDomain(element.absUrl("href"))
title = element.attr("title")
}
}
override fun oldXhrChaptersRequest(mangaId: String): Request { override fun oldXhrChaptersRequest(mangaId: String): Request {
val form = FormBody.Builder() val form = FormBody.Builder()

View File

@ -3,7 +3,7 @@ ext {
extClass = '.HentaiWebtoon' extClass = '.HentaiWebtoon'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://hentaiwebtoon.com' baseUrl = 'https://hentaiwebtoon.com'
overrideVersionCode = 2 overrideVersionCode = 3
isNsfw = true isNsfw = true
} }

View File

@ -2,11 +2,9 @@ package eu.kanade.tachiyomi.extension.en.hentaiwebtoon
import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.FormBody import okhttp3.FormBody
import okhttp3.Request import okhttp3.Request
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
class HentaiWebtoon : Madara("HentaiWebtoon", "https://hentaiwebtoon.com", "en") { class HentaiWebtoon : Madara("HentaiWebtoon", "https://hentaiwebtoon.com", "en") {
@ -18,15 +16,8 @@ class HentaiWebtoon : Madara("HentaiWebtoon", "https://hentaiwebtoon.com", "en")
override val useLoadMoreRequest = LoadMoreStrategy.Never override val useLoadMoreRequest = LoadMoreStrategy.Never
override fun popularMangaNextPageSelector() = "a.next" override fun popularMangaNextPageSelector() = "a.next"
override fun searchMangaSelector() = "li.movie-item > a" override fun searchMangaSelector() = popularMangaSelector()
override fun searchMangaNextPageSelector() = "a.next" override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaFromElement(element: Element): SManga {
return SManga.create().apply {
setUrlWithoutDomain(element.absUrl("href"))
title = element.attr("title")
}
}
override fun oldXhrChaptersRequest(mangaId: String): Request { override fun oldXhrChaptersRequest(mangaId: String): Request {
val form = FormBody.Builder() val form = FormBody.Builder()