mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
added Serienstream & Movie4k
This commit is contained in:
parent
839ec22f67
commit
571f455100
10 changed files with 76 additions and 44 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.hexated
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||
import org.jsoup.nodes.Element
|
||||
|
@ -21,9 +22,12 @@ class Nimegami : MainAPI() {
|
|||
|
||||
companion object {
|
||||
fun getType(t: String): TvType {
|
||||
return if (t.contains("OVA", true) || t.contains("Special", true)) TvType.OVA
|
||||
else if (t.contains("Movie", true)) TvType.AnimeMovie
|
||||
else TvType.Anime
|
||||
return when {
|
||||
t.contains("Tv", true) -> TvType.AnimeMovie
|
||||
t.contains("Movie", true) -> TvType.AnimeMovie
|
||||
t.contains("OVA", true) || t.contains("Special", true) -> TvType.OVA
|
||||
else -> TvType.Anime
|
||||
}
|
||||
}
|
||||
|
||||
fun getStatus(t: String?): ShowStatus {
|
||||
|
@ -94,7 +98,7 @@ class Nimegami : MainAPI() {
|
|||
val status = getStatus(document.selectFirst("h1[itemprop=headline]")?.text())
|
||||
val type = table.getContent("Type").text()
|
||||
val description = document.select("div#Sinopsis p").text().trim()
|
||||
|
||||
val trailer = document.selectFirst("div#Trailer iframe")?.attr("src")
|
||||
|
||||
val episodes = document.select("div.list_eps_stream li")
|
||||
.mapNotNull {
|
||||
|
@ -124,6 +128,7 @@ class Nimegami : MainAPI() {
|
|||
plot = description
|
||||
this.tags = tags
|
||||
this.recommendations = recommendations
|
||||
addTrailer(trailer)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue