This commit is contained in:
jack 2023-12-11 20:54:29 +07:00
parent 6891ca91bc
commit 9fdc2cc508
2 changed files with 24 additions and 15 deletions

View File

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers // use an integer for version numbers
version = 203 version = 204
android { android {
defaultConfig { defaultConfig {

View File

@ -1091,8 +1091,7 @@ object SoraExtractor : SoraStream() {
1 -> "Season 1" 1 -> "Season 1"
else -> "Season 1 $lastSeason" else -> "Season 1 $lastSeason"
} }
val media = val media = res.selectFirst("div.blog-items article:has(h3.entry-title:matches((?i)$title.*$match)) a")
res.selectFirst("div.blog-items article:has(h3.entry-title:matches((?i)$title.*$match)) a")
?.attr("href") ?.attr("href")
res = app.get(media ?: return).document res = app.get(media ?: return).document
@ -1107,23 +1106,33 @@ object SoraExtractor : SoraStream() {
entry.nextElementSibling()?.select("a:contains($aTag)")?.attr("href") entry.nextElementSibling()?.select("a:contains($aTag)")?.attr("href")
val selector = val selector =
if (season == null) "p a:contains(V-Cloud)" else "h4:matches(0?$episode) + p a:contains(V-Cloud)" if (season == null) "p a:contains(V-Cloud)" else "h4:matches(0?$episode) + p a:contains(V-Cloud)"
val serverRes = app.get( val server = app.get(
href ?: return, interceptor = CloudflareKiller() href ?: return, interceptor = CloudflareKiller()
).document ).document.selectFirst("div.entry-content > $selector")
val server = serverRes.selectFirst("div.entry-content > $selector") ?.attr("href") ?: return
?.attr("href")
loadExtractor(server ?: return, "$api/", subtitleCallback) { link -> val quality = getIndexQuality(entry.text())
if(server.contains("/dl.php?")) {
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
link.name, "Vegamovies",
"${link.name} $tags", "Vegamovies",
link.url, server,
link.referer, "",
getIndexQuality(entry.text()), quality,
link.type, INFER_TYPE
link.headers,
) )
) )
} else {
loadCustomTagExtractor(
tags,
server,
"$api/",
subtitleCallback,
callback,
quality
)
} }
} }