Add Hindi movie link (#21)

* fixed PhimmoichillProvider

* final fixed sources

* fixed Kuramanime

* added HorizontalImages

* fixes NontonAnimeIDProvider mainPage

Co-authored-by: hexated <hexated@gmail.com>
This commit is contained in:
uzairhaider502 2022-09-16 14:19:52 +05:00 committed by GitHub
parent e9392ff7fd
commit c5046346ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 49 additions and 94 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {
@ -7,7 +7,7 @@ cloudstream {
// All of these properties are optional, you can safely remove them
// description = "Lorem Ipsum"
// authors = listOf("Cloudburst")
authors = listOf("Hexated")
/**
* Status int as the following:

View file

@ -21,12 +21,6 @@ class KuramanimeProvider : MainAPI() {
)
companion object {
fun getType(t: String): TvType {
return if (t.contains("OVA") || t.contains("Special")) TvType.OVA
else if (t.contains("Movie")) TvType.AnimeMovie
else TvType.Anime
}
fun getStatus(t: String): ShowStatus {
return when (t) {
"Selesai Tayang" -> ShowStatus.Completed
@ -80,20 +74,11 @@ class KuramanimeProvider : MainAPI() {
}
override suspend fun search(query: String): List<SearchResponse> {
val link = "$mainUrl/anime?search=$query&order_by=oldest"
val link = "$mainUrl/anime?search=$query&order_by=latest"
val document = app.get(link).document
return document.select(".product__item").mapNotNull {
val title = it.selectFirst("div.product__item__text > h5")!!.text().trim()
val poster = it.selectFirst("a > div")!!.attr("data-setbg")
val tvType =
getType(it.selectFirst(".product__item__text > ul > li")!!.text().toString())
val href = fixUrl(it.selectFirst("a")!!.attr("href"))
newAnimeSearchResponse(title, href, tvType) {
this.posterUrl = poster
addDubStatus(dubExist = false, subExist = true)
}
return document.select("div#animeList div.col-lg-4.col-md-6.col-sm-6").mapNotNull {
it.toSearchResult()
}
}
@ -164,7 +149,10 @@ class KuramanimeProvider : MainAPI() {
name,
url,
referer = "$mainUrl/",
quality = quality
quality = quality,
headers = mapOf(
"Range" to "bytes=0-"
)
)
)
}