mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fix Shivamhw (don't think so..)
This commit is contained in:
parent
208695a77b
commit
af36ee6e71
2 changed files with 11 additions and 12 deletions
|
@ -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 = 135
|
version = 136
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
|
@ -2785,7 +2785,7 @@ object SoraExtractor : SoraStream() {
|
||||||
Triple(
|
Triple(
|
||||||
it.select("td[data-th=File Name]").text(),
|
it.select("td[data-th=File Name]").text(),
|
||||||
it.select("td[data-th=Size]").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 {
|
} else {
|
||||||
|
@ -2793,7 +2793,7 @@ object SoraExtractor : SoraStream() {
|
||||||
Triple(
|
Triple(
|
||||||
it.name,
|
it.name,
|
||||||
it.size,
|
it.size,
|
||||||
it.process_link,
|
it.stream_link,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2813,19 +2813,18 @@ object SoraExtractor : SoraStream() {
|
||||||
}?.apmap { source ->
|
}?.apmap { source ->
|
||||||
val quality = getIndexQuality(source.first)
|
val quality = getIndexQuality(source.first)
|
||||||
val tags = getIndexQualityTags(source.first)
|
val tags = getIndexQualityTags(source.first)
|
||||||
val video = app.get(
|
val video = source.third
|
||||||
fixUrl(
|
if (!app.get(
|
||||||
source.third ?: return@apmap,
|
video ?: return@apmap,
|
||||||
shivamhwAPI
|
referer = "$shivamhwAPI/"
|
||||||
)
|
).isSuccessful
|
||||||
).document.selectFirst("table.rwd-table tr:contains(Direct Download Link) a")
|
) return@apmap
|
||||||
?.attr("href")
|
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
"Shivamhw",
|
"Shivamhw",
|
||||||
"Shivamhw $tags [${source.second}]",
|
"Shivamhw $tags [${source.second}]",
|
||||||
video ?: return@apmap,
|
video,
|
||||||
"",
|
"$shivamhwAPI/",
|
||||||
quality,
|
quality,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue