Adult Webtoon: Fix manga path (#536)
* Adult Webtoon: Fix manga path * Remove unused imports
This commit is contained in:
parent
61f58db749
commit
49c8180aa1
|
@ -1,25 +1,7 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.adultwebtoon
|
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.GET
|
|
||||||
import okhttp3.CacheControl
|
|
||||||
import okhttp3.Request
|
|
||||||
|
|
||||||
class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") {
|
class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") {
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override val mangaSubString = "adult-webtoon"
|
||||||
val pageSuffix = if (page != 1) "page/$page/" else ""
|
|
||||||
return GET(
|
|
||||||
"$baseUrl/manga/$pageSuffix?m_orderby=trending",
|
|
||||||
headers,
|
|
||||||
CacheControl.FORCE_NETWORK,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
override fun latestUpdatesRequest(page: Int): Request {
|
|
||||||
val pageSuffix = if (page != 1) "page/$page/" else ""
|
|
||||||
return GET(
|
|
||||||
"$baseUrl/manga/$pageSuffix?m_orderby=latest",
|
|
||||||
headers,
|
|
||||||
CacheControl.FORCE_NETWORK,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("247Manga", "https://247manga.com", "en", className = "Manga247", overrideVersionCode = 1),
|
SingleLang("247Manga", "https://247manga.com", "en", className = "Manga247", overrideVersionCode = 1),
|
||||||
SingleLang("365Manga", "https://365manga.com", "en", className = "ThreeSixtyFiveManga", overrideVersionCode = 1),
|
SingleLang("365Manga", "https://365manga.com", "en", className = "ThreeSixtyFiveManga", overrideVersionCode = 1),
|
||||||
SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1),
|
SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1),
|
||||||
SingleLang("Adult Webtoon", "https://adultwebtoon.com", "en", isNsfw = true, overrideVersionCode = 1),
|
SingleLang("Adult Webtoon", "https://adultwebtoon.com", "en", isNsfw = true, overrideVersionCode = 2),
|
||||||
SingleLang("Akimangá", "https://akimanga.com", "pt-BR", isNsfw = true, className = "Akimanga"),
|
SingleLang("Akimangá", "https://akimanga.com", "pt-BR", isNsfw = true, className = "Akimanga"),
|
||||||
SingleLang("AkuManga", "https://akumanga.com", "en", isNsfw = true, overrideVersionCode = 2),
|
SingleLang("AkuManga", "https://akumanga.com", "en", isNsfw = true, overrideVersionCode = 2),
|
||||||
SingleLang("Akuzenai Arts", "https://akuzenaiarts.org", "en"),
|
SingleLang("Akuzenai Arts", "https://akuzenaiarts.org", "en"),
|
||||||
|
|
Loading…
Reference in New Issue