mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Time4tv schedule & fixed some Indonesian providers
This commit is contained in:
parent
abd09470d0
commit
61cf3fd9ad
6 changed files with 12 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -23,5 +23,5 @@ cloudstream {
|
|||
"Anime",
|
||||
)
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=animeindo.fun&sz=%size%"
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=animeindo.cfd&sz=%size%"
|
||||
}
|
|
@ -10,7 +10,7 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class AnimeIndoProvider : MainAPI() {
|
||||
override var mainUrl = "https://animeindo.fun"
|
||||
override var mainUrl = "https://animeindo.cfd"
|
||||
override var name = "AnimeIndo"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
@ -40,7 +40,7 @@ class AnimeIndoProvider : MainAPI() {
|
|||
private suspend fun request(url: String): NiceResponse {
|
||||
val req = app.get(
|
||||
url,
|
||||
cookies = mapOf("recaptcha_cookie" to "#Asia/Jakarta#-420#win32#Windows#0,false,false#Google Inc. (Intel)~ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0)")
|
||||
headers = mapOf("Cookie" to "_ga_RHDMEL4EDM=GS1.1.1668082390.1.0.1668082390.0.0.0; _ga=GA1.1.916626312.1668082390")
|
||||
)
|
||||
if (req.isSuccessful) {
|
||||
return req
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 6
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class NontonAnimeIDProvider : MainAPI() {
|
||||
override var mainUrl = "https://nontonanimeid.site"
|
||||
override var mainUrl = "https://nontonanimeid.click"
|
||||
override var name = "NontonAnimeID"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 6
|
||||
version = 7
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -6,6 +6,7 @@ import com.lagradost.cloudstream3.utils.AppUtils
|
|||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
open class TimefourTv : MainAPI() {
|
||||
|
@ -90,11 +91,12 @@ open class TimefourTv : MainAPI() {
|
|||
val doc = app.get("$mainUrl/schedule.php").document
|
||||
|
||||
val episode =
|
||||
doc.selectFirst("div.search_p h2:contains($name)")?.nextElementSibling()?.select("span")
|
||||
?.mapIndexedNotNull { index, ele ->
|
||||
doc.selectFirst("div.search_p h2:contains($name)")?.nextElementSiblings()?.toString()
|
||||
?.substringBefore("<h2")?.let { Jsoup.parse(it) }?.select("span")
|
||||
?.mapIndexed { index, ele ->
|
||||
val title = ele.select("a").text()
|
||||
val href = ele.select("a").attr("href")
|
||||
val desc = ele.parent()?.textNodes()?.get(index).toString()
|
||||
val desc = ele.parent()?.textNodes()?.getOrNull(index)?.toString()
|
||||
Episode(
|
||||
href,
|
||||
title,
|
||||
|
|
Loading…
Reference in a new issue