TaurusFansub: fix mangaDetails (#5982)

* fix mangaDetails

* minus changes
This commit is contained in:
Yush0DAN 2024-11-11 02:41:27 -06:00 committed by GitHub
parent 9fa2cddc38
commit c73a28a3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.TaurusFansub'
themePkg = 'madara'
baseUrl = 'https://taurusmanga.com'
overrideVersionCode = 1
overrideVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -2,6 +2,8 @@ package eu.kanade.tachiyomi.extension.es.taurusfansub
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
@ -19,5 +21,21 @@ class TaurusFansub : Madara(
override val useNewChapterEndpoint = true
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val mangaDetailsSelectorDescription = "div.tab-summary > div.tab-content > div#tab-reducir > div.contenedor"
override fun mangaDetailsParse(document: Document): SManga {
val manga = SManga.create()
manga.description = document.select("div.site-content div.summary_content p").text()
manga.genre = document.select("div.site-content div.summary_content div.genres-content").joinToString { it.text() }
manga.author = document.select("div.site-content div.summary_content div.tags-content").text()
val stado = document.select("div.site-content div.summary_content div.manga-title div.post-content_item div.summary-content").first()?.text()
manga.status = when (stado) {
"En Curso" -> { SManga.ONGOING }
"Completado" -> { SManga.COMPLETED }
else -> { SManga.UNKNOWN }
}
manga.artist = document.select("div.site-content div.summary_content div.tags-content").text()
return manga
}
}