Vetle Ledaal dce77b7290
Madara: add some more sites (#17579)
* Madara overrides - code

* Madara overrides - icons

* MadaraGenerator - sort

* MadaraGenerator - +71 sources

* suggested changes

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2023-08-19 11:56:23 -03:00

57 lines
1.5 KiB
Kotlin

package eu.kanade.tachiyomi.extension.ru.mangamammy
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.FilterList
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class MangaMammy : Madara(
"Manga Mammy",
"https://mangamammy.ru",
"ru",
dateFormat = SimpleDateFormat("dd.MM.yyyy", Locale.ROOT),
) {
override val useNewChapterEndpoint = true
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
override fun popularMangaSelector() = searchMangaSelector()
override fun popularMangaRequest(page: Int): Request =
searchMangaRequest(
page,
"",
FilterList(
listOf(
OrderByFilter(
"",
listOf(
Pair("", ""),
Pair("", "views"),
),
1,
),
),
),
)
override fun latestUpdatesRequest(page: Int): Request =
searchMangaRequest(
page,
"",
FilterList(
listOf(
OrderByFilter(
"",
listOf(
Pair("", ""),
Pair("", "latest"),
),
1,
),
),
),
)
}