mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Fixed PhimmoichillProvider and disabled some providers
This commit is contained in:
parent
4baacbb689
commit
0860d85a7c
7 changed files with 28 additions and 17 deletions
|
@ -16,7 +16,7 @@ cloudstream {
|
|||
* 2: Slow
|
||||
* 3: Beta only
|
||||
* */
|
||||
status = 1 // will be 3 if unspecified
|
||||
status = 0 // will be 3 if unspecified
|
||||
tvTypes = listOf(
|
||||
"TvSeries",
|
||||
"Movie",
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package com.lagradost
|
||||
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.mvvm.logError
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class PeliSmartProvider: MainAPI() {
|
||||
// Dead link
|
||||
override var mainUrl = "https://pelismart.com"
|
||||
override var name = "PeliSmart"
|
||||
override var lang = "es"
|
||||
|
@ -45,7 +47,7 @@ class PeliSmartProvider: MainAPI() {
|
|||
|
||||
items.add(HomePageList(name, home))
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
logError(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ cloudstream {
|
|||
* 2: Slow
|
||||
* 3: Beta only
|
||||
* */
|
||||
status = 1 // will be 3 if unspecified
|
||||
status = 0 // will be 3 if unspecified
|
||||
tvTypes = listOf(
|
||||
"TvSeries",
|
||||
"Movie",
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class PelisflixProvider : MainAPI() {
|
||||
// Link not found anymore :(
|
||||
override var mainUrl = "https://pelisflix.li"
|
||||
override var name = "Pelisflix"
|
||||
override var lang = "es"
|
||||
|
@ -198,7 +199,7 @@ class PelisflixProvider : MainAPI() {
|
|||
val postkey = iframe.replace("/stream/index.php?h=", "") // this obtains
|
||||
// djNIdHNCR2lKTGpnc3YwK3pyRCs3L2xkQmljSUZ4ai9ibTcza0JRODNMcmFIZ0hPejdlYW0yanJIL2prQ1JCZA POST KEY
|
||||
app.post(
|
||||
"https://pelisflix.li/stream/r.php",
|
||||
"$mainUrl/stream/r.php",
|
||||
headers = mapOf(
|
||||
"Host" to "pelisflix.li",
|
||||
"User-Agent" to USER_AGENT,
|
||||
|
|
|
@ -16,7 +16,7 @@ cloudstream {
|
|||
* 2: Slow
|
||||
* 3: Beta only
|
||||
* */
|
||||
status = 1 // will be 3 if unspecified
|
||||
status = 0 // will be 3 if unspecified
|
||||
tvTypes = listOf(
|
||||
"TvSeries",
|
||||
"Movie",
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class PelisplusHDProvider : MainAPI() {
|
||||
override var mainUrl = "https://pelisplushd.net"
|
||||
override var mainUrl = "https://pelisplushd.cam"
|
||||
override var name = "PelisplusHD"
|
||||
override var lang = "es"
|
||||
override val hasMainPage = true
|
||||
|
@ -16,6 +16,7 @@ class PelisplusHDProvider:MainAPI() {
|
|||
TvType.Movie,
|
||||
TvType.TvSeries,
|
||||
)
|
||||
|
||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||
val items = ArrayList<HomePageList>()
|
||||
val document = app.get(mainUrl).document
|
||||
|
@ -35,6 +36,7 @@ class PelisplusHDProvider:MainAPI() {
|
|||
}
|
||||
return HomePageResponse(items)
|
||||
}
|
||||
|
||||
private fun Element.toSearchResult(): SearchResponse {
|
||||
val title = this.select(".listing-content p").text()
|
||||
val href = this.select("a").attr("href")
|
||||
|
@ -63,7 +65,7 @@ class PelisplusHDProvider:MainAPI() {
|
|||
}
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
val url = "https://pelisplushd.net/search?s=${query}"
|
||||
val url = "$mainUrl/search?s=${query}"
|
||||
val document = app.get(url).document
|
||||
|
||||
return document.select("a.Posters-link").map {
|
||||
|
@ -157,6 +159,7 @@ class PelisplusHDProvider:MainAPI() {
|
|||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun loadLinks(
|
||||
data: String,
|
||||
isCasting: Boolean,
|
||||
|
@ -164,7 +167,9 @@ class PelisplusHDProvider:MainAPI() {
|
|||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
app.get(data).document.select("div.player > script").map { script ->
|
||||
fetchUrls(script.data().replace("https://pelisplushd.net/fembed.php?url=","https://www.fembed.com/v/")).apmap {
|
||||
fetchUrls(
|
||||
script.data().replace("$mainUrl/fembed.php?url=", "https://www.fembed.com/v/")
|
||||
).apmap {
|
||||
loadExtractor(it, data, subtitleCallback, callback)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,7 +143,6 @@ class PhimmoichillProvider : MainAPI() {
|
|||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
|
||||
val document = app.get(data).document
|
||||
|
||||
val key = document.select("div#content script").mapNotNull { script ->
|
||||
|
@ -151,11 +150,15 @@ class PhimmoichillProvider : MainAPI() {
|
|||
val id = script.data().substringAfter("filmInfo.episodeID = parseInt('")
|
||||
.substringBefore("');")
|
||||
app.post(
|
||||
url = "$mainUrl/pmplayer.php",
|
||||
// Not mainUrl
|
||||
url = "https://phimmoichills.net/pmplayer.php",
|
||||
data = mapOf("qcao" to id),
|
||||
referer = data,
|
||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
||||
).text.substringAfterLast("iniPlayers(\"").substringBefore("\",")
|
||||
headers = mapOf(
|
||||
"X-Requested-With" to "XMLHttpRequest",
|
||||
"Content-Type" to "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
)
|
||||
).text.also { println("HERERERR $it") }.substringAfterLast("iniPlayers(\"").substringBefore("\",")
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue