-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
117 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// use an integer for version numbers | ||
version = 18 | ||
version = 19 | ||
|
||
|
||
cloudstream { | ||
|
86 changes: 86 additions & 0 deletions
86
LayarKacaProvider/src/main/kotlin/com/hexated/Extractors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package com.hexated | ||
|
||
import com.lagradost.cloudstream3.SubtitleFile | ||
import com.lagradost.cloudstream3.app | ||
import com.lagradost.cloudstream3.extractors.Filesim | ||
import com.lagradost.cloudstream3.utils.ExtractorApi | ||
import com.lagradost.cloudstream3.utils.ExtractorLink | ||
import com.lagradost.cloudstream3.utils.INFER_TYPE | ||
import com.lagradost.cloudstream3.utils.M3u8Helper | ||
import com.lagradost.cloudstream3.utils.getQualityFromName | ||
|
||
open class Emturbovid : ExtractorApi() { | ||
override val name = "Emturbovid" | ||
override val mainUrl = "https://emturbovid.com" | ||
override val requiresReferer = true | ||
|
||
override suspend fun getUrl( | ||
url: String, | ||
referer: String?, | ||
subtitleCallback: (SubtitleFile) -> Unit, | ||
callback: (ExtractorLink) -> Unit | ||
) { | ||
val response = app.get(url, referer = referer) | ||
val m3u8 = Regex("[\"'](.*?master\\.m3u8.*?)[\"']").find(response.text)?.groupValues?.getOrNull(1) | ||
M3u8Helper.generateM3u8( | ||
name, | ||
m3u8 ?: return, | ||
mainUrl | ||
).forEach(callback) | ||
} | ||
|
||
} | ||
|
||
open class Hownetwork : ExtractorApi() { | ||
override val name = "Hownetwork" | ||
override val mainUrl = "https://stream.hownetwork.xyz" | ||
override val requiresReferer = true | ||
|
||
override suspend fun getUrl( | ||
url: String, | ||
referer: String?, | ||
subtitleCallback: (SubtitleFile) -> Unit, | ||
callback: (ExtractorLink) -> Unit | ||
) { | ||
val id = url.substringAfter("id=") | ||
val res = app.post( | ||
"$mainUrl/api.php?id=$id", | ||
data = mapOf( | ||
"r" to "https://playeriframe.shop/", | ||
"d" to "stream.hownetwork.xyz", | ||
), | ||
referer = url, | ||
headers = mapOf( | ||
"X-Requested-With" to "XMLHttpRequest" | ||
) | ||
).parsedSafe<Sources>() | ||
|
||
res?.data?.map { | ||
callback.invoke( | ||
ExtractorLink( | ||
this.name, | ||
this.name, | ||
it.file, | ||
url, | ||
getQualityFromName(it.label), | ||
INFER_TYPE | ||
) | ||
) | ||
} | ||
|
||
} | ||
|
||
data class Sources( | ||
val data: ArrayList<Data> | ||
) { | ||
data class Data( | ||
val file: String, | ||
val label: String?, | ||
) | ||
} | ||
} | ||
|
||
class Furher : Filesim() { | ||
override val name = "Furher" | ||
override var mainUrl = "https://furher.in" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters