fixed title NontonAnimeID

This commit is contained in:
hexated 2022-11-29 16:32:26 +07:00
parent 874958bc6e
commit 4272df4072
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 9 version = 10
cloudstream { cloudstream {

View file

@ -88,8 +88,8 @@ open class TimefourTv : MainAPI() {
val name = url.removePrefix("$mainUrl/") val name = url.removePrefix("$mainUrl/")
val doc = app.get("$mainUrl/schedule.php").document val doc = app.get("$mainUrl/schedule.php").document
val episode = mutableListOf<Episode>() val episode = mutableListOf<Episode>()
doc.selectFirst("div.search_p h1:contains($name)")?.nextElementSiblings()?.toString() doc.selectFirst("div.search_p h2:contains($name)")?.nextElementSiblings()?.toString()
?.substringBefore("<h1")?.split("<br>")?.map { ?.substringBefore("<h2")?.split("<br>")?.map {
val desc = it.substringBefore("<span").replace(Regex("</?strong>"), "").replace("<p>", "") val desc = it.substringBefore("<span").replace(Regex("</?strong>"), "").replace("<p>", "")
Jsoup.parse(it).select("span").map { ele -> Jsoup.parse(it).select("span").map { ele ->
val title = ele.select("a").text() val title = ele.select("a").text()