fixed title NontonAnimeID

This commit is contained in:
hexated 2022-11-29 16:32:26 +07:00
parent c47553bc77
commit 446c4f20a8
2 changed files with 3 additions and 3 deletions

View File

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

View File

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