mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed title NontonAnimeID
This commit is contained in:
parent
874958bc6e
commit
4272df4072
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 9
|
version = 10
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue