CVIUS 1a352389e6
add few more sources & changes to some madara sources (#8160)
* 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
2021-07-19 06:59:19 -04:00

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