mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
TaurusFansub: fix mangaDetails (#5982)
* fix mangaDetails * minus changes
This commit is contained in:
parent
9fa2cddc38
commit
c73a28a3da
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.TaurusFansub'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://taurusmanga.com'
|
||||
overrideVersionCode = 1
|
||||
overrideVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user