Improvements

This commit is contained in:
Diego Sánchez 2022-12-13 09:53:42 -03:00 committed by GitHub
parent 0bb79c657e
commit 57aa94dd12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class MundoDonghuaProvider : MainAPI() {
override suspend fun load(url: String): LoadResponse {
val doc = app.get(url, timeout = 120).document
val docSpecial = app.get("https://www.mundodonghua.com", timeout = 120).document
val docSpecial = app.get(mainUrl, timeout = 120).document
val poster = doc.selectFirst("head meta[property=og:image]")?.attr("content") ?: ""
val title = doc.selectFirst(".ls-title-serie")?.text() ?: ""
val description = doc.selectFirst("p.text-justify.fc-dark")?.text() ?: ""
@ -122,7 +122,7 @@ class MundoDonghuaProvider : MainAPI() {
val tvType = if (typeinfo.contains(Regex("Tipo.*Pel.cula"))) TvType.AnimeMovie else TvType.Anime
return newAnimeLoadResponse(title, url, tvType) {
posterUrl = poster
addEpisodes(DubStatus.Subbed, episodesFinal.filterNotNull().filterIsInstance<Episode>())
addEpisodes(DubStatus.Subbed, episodesFinal)
showStatus = status
plot = description
tags = genres