fixed VidSrcExtractor

This commit is contained in:
hexated 2023-01-31 14:26:34 +07:00 committed by Cloudburst
parent c7c5fa250e
commit b26a41bdaf

View file

@ -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