mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Extractor: added Pichive & Sobreatsesuyp
This commit is contained in:
parent
56550ffe48
commit
10f95fea9b
1 changed files with 2 additions and 10 deletions
|
@ -30,25 +30,17 @@ open class Sobreatsesuyp : ExtractorApi() {
|
||||||
}
|
}
|
||||||
Log.d("Kekik_${this.name}", "postJson » ${postJson}")
|
Log.d("Kekik_${this.name}", "postJson » ${postJson}")
|
||||||
|
|
||||||
val vidPairs = mutableListOf<Pair<String, String>>()
|
|
||||||
for (item in postJson) {
|
for (item in postJson) {
|
||||||
if (item.file == null || item.title == null) continue
|
if (item.file == null || item.title == null) continue
|
||||||
|
|
||||||
val fileUrl = "${mainUrl}/playlist/${item.file.substring(1)}.txt"
|
val fileUrl = "${mainUrl}/playlist/${item.file.substring(1)}.txt"
|
||||||
val videoData = app.post(fileUrl, referer = extRef).text
|
val videoData = app.post(fileUrl, referer = extRef).text
|
||||||
|
|
||||||
vidPairs.add(Pair(item.title, videoData))
|
|
||||||
}
|
|
||||||
|
|
||||||
for (vidPair in vidPairs) {
|
|
||||||
Log.d("Kekik_${this.name}", "vidPair » ${vidPair}")
|
|
||||||
val (title, m3uLink) = vidPair
|
|
||||||
|
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
source = this.name,
|
source = this.name,
|
||||||
name = "${this.name} - ${title}",
|
name = "${this.name} - ${item.title}",
|
||||||
url = m3uLink,
|
url = videoData,
|
||||||
referer = extRef,
|
referer = extRef,
|
||||||
quality = Qualities.Unknown.value,
|
quality = Qualities.Unknown.value,
|
||||||
type = INFER_TYPE
|
type = INFER_TYPE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue