sora: fix Shivamhw (don't think so..)

This commit is contained in:
hexated 2023-06-05 06:34:14 +07:00
parent 208695a77b
commit af36ee6e71
2 changed files with 11 additions and 12 deletions

View file

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

View file

@ -2785,7 +2785,7 @@ object SoraExtractor : SoraStream() {
Triple(
it.select("td[data-th=File Name]").text(),
it.select("td[data-th=Size]").text(),
it.selectFirst("div.play_with_vlc_button > a")?.attr("href")
it.selectFirst("div.download_button.pls_wait > a")?.attr("href")
)
}
} else {
@ -2793,7 +2793,7 @@ object SoraExtractor : SoraStream() {
Triple(
it.name,
it.size,
it.process_link,
it.stream_link,
)
}
}
@ -2813,19 +2813,18 @@ object SoraExtractor : SoraStream() {
}?.apmap { source ->
val quality = getIndexQuality(source.first)
val tags = getIndexQualityTags(source.first)
val video = app.get(
fixUrl(
source.third ?: return@apmap,
shivamhwAPI
)
).document.selectFirst("table.rwd-table tr:contains(Direct Download Link) a")
?.attr("href")
val video = source.third
if (!app.get(
video ?: return@apmap,
referer = "$shivamhwAPI/"
).isSuccessful
) return@apmap
callback.invoke(
ExtractorLink(
"Shivamhw",
"Shivamhw $tags [${source.second}]",
video ?: return@apmap,
"",
video,
"$shivamhwAPI/",
quality,
)
)