mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Rebahin and moved Ngefilm
This commit is contained in:
parent
46c67dbd35
commit
864b266f9e
14 changed files with 76 additions and 234 deletions
|
@ -22,8 +22,8 @@ class Phim1080Provider : MainAPI() {
|
|||
|
||||
private fun encodeString(e: String, t: Int): String {
|
||||
var a = ""
|
||||
for (i in 0 until e.length) {
|
||||
val r = e[i].code
|
||||
for (element in e) {
|
||||
val r = element.code
|
||||
val o = r xor t
|
||||
a += o.toChar()
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class Phim1080Provider : MainAPI() {
|
|||
"Content-Type" to "application/json",
|
||||
"X-Requested-With" to "XMLHttpRequest"
|
||||
)
|
||||
).parsedSafe<filmInfo>()
|
||||
).parsedSafe<FilmInfo>()
|
||||
val title = filmInfo?.name?.trim().toString()
|
||||
val poster = filmInfo?.thumbnail
|
||||
val background = filmInfo?.poster
|
||||
|
@ -209,7 +209,7 @@ class Phim1080Provider : MainAPI() {
|
|||
return true
|
||||
}
|
||||
|
||||
data class filmInfo(
|
||||
data class FilmInfo(
|
||||
@JsonProperty("name") val name: String? = null,
|
||||
@JsonProperty("poster") val poster: String? = null,
|
||||
@JsonProperty("thumbnail") val thumbnail: String? = null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue