mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
yet another StreamingCommunity Fix... (#82)
Co-authored-by: contusionglory <102427829+contusionglory@users.noreply.github.com>
This commit is contained in:
parent
4fc0e3ce4b
commit
f456a7cc92
2 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 5
|
version = 6
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -180,10 +180,14 @@ class StreamingcommunityProvider : MainAPI() {
|
||||||
private suspend fun VideoElement.toSearchResponse(): MovieSearchResponse {
|
private suspend fun VideoElement.toSearchResponse(): MovieSearchResponse {
|
||||||
val id = this.id
|
val id = this.id
|
||||||
val name = this.slug
|
val name = this.slug
|
||||||
val img = this.images[0].url
|
val img = this.images.firstOrNull()
|
||||||
val number = translateNumber(this.images[0].serverID.toInt())
|
val posterUrl = if (img != null){
|
||||||
val ip = translateIp(this.images[0].proxyID.toInt())
|
val number = translateNumber(this.images[0].serverID.toInt())
|
||||||
val posterUrl = "https://$ip/images/$number/$img"
|
val ip = translateIp(this.images[0].proxyID.toInt())
|
||||||
|
"https://$ip/images/$number/${img.url}"
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
val videoUrl = "$mainUrl/titles/$id-$name"
|
val videoUrl = "$mainUrl/titles/$id-$name"
|
||||||
//posterMap[videourl] = posterurl
|
//posterMap[videourl] = posterurl
|
||||||
val data = app.post(
|
val data = app.post(
|
||||||
|
|
Loading…
Reference in a new issue