Tachiyomi-Extensions/multisrc/overrides/madara/toonily/src/Toonily.kt

24 lines
653 B
Kotlin
Raw Normal View History

package eu.kanade.tachiyomi.extension.en.toonily
import eu.kanade.tachiyomi.multisrc.madara.Madara
2022-02-22 12:37:18 +00:00
import java.text.SimpleDateFormat
import java.util.Locale
class Toonily : Madara(
"Toonily",
"https://toonily.com",
"en",
SimpleDateFormat("MMM d, yy", Locale.US)
) {
// The source customized the Madara theme and broke the filter.
override val filterNonMangaItems = false
override val useNewChapterEndpoint: Boolean = true
override fun parseChapterDate(date: String?): Long {
val formattedDate = if (date?.contains("UP") == true) "today" else date
return super.parseChapterDate(formattedDate)
}
}