2021-02-10 14:05:12 +00:00
|
|
|
package eu.kanade.tachiyomi.extension.en.toonily
|
|
|
|
|
2021-08-22 15:29:08 +00:00
|
|
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
2022-02-22 12:37:18 +00:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
import java.util.Locale
|
2021-02-10 14:05:12 +00:00
|
|
|
|
2022-04-07 16:38:03 +00:00
|
|
|
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
|
|
|
|
|
2021-09-18 03:18:58 +00:00
|
|
|
override val useNewChapterEndpoint: Boolean = true
|
2022-05-09 21:13:23 +00:00
|
|
|
|
|
|
|
override fun parseChapterDate(date: String?): Long {
|
|
|
|
val formattedDate = if (date?.contains("UP") == true) "today" else date
|
|
|
|
return super.parseChapterDate(formattedDate)
|
|
|
|
}
|
2021-02-10 14:05:12 +00:00
|
|
|
}
|