Fix date Toonily (#11784)

Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com>
This commit is contained in:
nzoba 2022-05-09 23:13:23 +02:00 committed by GitHub
parent 82aeb9ebc6
commit 0e1b9d7f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -15,4 +15,9 @@ class Toonily : Madara(
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)
}
}

View File

@ -425,7 +425,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("TonizuToon", "https://tonizutoon.com", "tr", isNsfw = true),
SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("ToonMany", "https://toonmany.com", "en", isNsfw = true),
SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 6),
SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 7),
SingleLang("Toonily.net", "https://toonily.net", "en", isNsfw = true, className = "Toonilynet", overrideVersionCode = 2),
SingleLang("Top Manhua", "https://topmanhua.com", "en", overrideVersionCode = 1),
SingleLang("Tortuga Ceviri", "https://tortuga-ceviri.com", "tr"),