forked from recloudstream/cloudstream
fixed VidSrcExtractor
This commit is contained in:
parent
c7c5fa250e
commit
b26a41bdaf
1 changed files with 3 additions and 3 deletions
|
@ -59,8 +59,8 @@ open class VidSrcExtractor : ExtractorApi() {
|
||||||
if (datahash.isNotBlank()) {
|
if (datahash.isNotBlank()) {
|
||||||
val links = try {
|
val links = try {
|
||||||
app.get(
|
app.get(
|
||||||
"$absoluteUrl/src/$datahash",
|
"$absoluteUrl/srcrcp/$datahash",
|
||||||
referer = "https://source.vidsrc.me/"
|
referer = "https://rcp.vidsrc.me/"
|
||||||
).url
|
).url
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
""
|
""
|
||||||
|
@ -71,7 +71,7 @@ open class VidSrcExtractor : ExtractorApi() {
|
||||||
|
|
||||||
serverslist.amap { server ->
|
serverslist.amap { server ->
|
||||||
val linkfixed = server.replace("https://vidsrc.xyz/", "https://embedsito.com/")
|
val linkfixed = server.replace("https://vidsrc.xyz/", "https://embedsito.com/")
|
||||||
if (linkfixed.contains("/pro")) {
|
if (linkfixed.contains("/prorcp")) {
|
||||||
val srcresponse = app.get(server, referer = absoluteUrl).text
|
val srcresponse = app.get(server, referer = absoluteUrl).text
|
||||||
val m3u8Regex = Regex("((https:|http:)//.*\\.m3u8)")
|
val m3u8Regex = Regex("((https:|http:)//.*\\.m3u8)")
|
||||||
val srcm3u8 = m3u8Regex.find(srcresponse)?.value ?: return@amap
|
val srcm3u8 = m3u8Regex.find(srcresponse)?.value ?: return@amap
|
||||||
|
|
Loading…
Reference in a new issue