feat(multisrc/dooplay): Convert AnimeOnlineNinja(es) to multisrc (#1614)

This commit is contained in:
Claudemirovsky
2023-05-17 10:50:12 -03:00
committed by GitHub
parent 79562d7139
commit 55520120fb
23 changed files with 408 additions and 741 deletions

View File

@ -480,7 +480,7 @@ abstract class DooPlay(
SimpleDateFormat("MMMM. dd, yyyy", Locale.ENGLISH)
}
private fun String.toDate(): Long {
protected open fun String.toDate(): Long {
return runCatching { DATE_FORMATTER.parse(trim())?.time }
.getOrNull() ?: 0L
}

View File

@ -12,6 +12,7 @@ class DooPlayGenerator : ThemeSourceGenerator {
override val sources = listOf(
SingleLang("Animes House", "https://animeshouse.net", "pt-BR", isNsfw = false, overrideVersionCode = 4),
SingleLang("AnimeOnline.Ninja", "https://www1.animeonline.ninja", "es", className = "AnimeOnlineNinja", isNsfw = false, overrideVersionCode = 26),
SingleLang("AnimesFox BR", "https://animesfoxbr.com", "pt-BR", isNsfw = false),
SingleLang("AnimePlayer", "https://animeplayer.com.br", "pt-BR", isNsfw = true),
SingleLang("Cinemathek", "https://cinemathek.net", "de", isNsfw = true, overrideVersionCode = 11),