
* icons1 * icons2 * Create MangaManhua.kt * Create ManhuaToon.kt * Create MangaLeveling.kt * Update WebtoonXYZ.kt * Update MadaraGenerator.kt * Update MadaraGenerator.kt * Update MadaraGenerator.kt * Update MadaraGenerator.kt fix typo * Update MadaraGenerator.kt fiz typo * Update MangaHZ.kt
16 lines
726 B
Kotlin
16 lines
726 B
Kotlin
package eu.kanade.tachiyomi.extension.en.webtoonxyz
|
|
|
|
import eu.kanade.tachiyomi.annotations.Nsfw
|
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
|
import eu.kanade.tachiyomi.network.GET
|
|
import okhttp3.Request
|
|
import java.text.SimpleDateFormat
|
|
import java.util.Locale
|
|
|
|
@Nsfw
|
|
class WebtoonXYZ : Madara("WebtoonXYZ", "https://www.webtoon.xyz", "en", SimpleDateFormat("dd MMMM yyyy", Locale.US)) {
|
|
private fun pagePath(page: Int) = if (page > 1) "page/$page/" else ""
|
|
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/webtoons/${pagePath(page)}?m_orderby=views", headers)
|
|
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/webtoons/${pagePath(page)}?m_orderby=latest", headers)
|
|
}
|