mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: added timeout in index
This commit is contained in:
parent
f29605ec95
commit
62cab062e3
1 changed files with 23 additions and 23 deletions
|
@ -1120,30 +1120,30 @@ object SoraExtractor : SoraStream() {
|
|||
}
|
||||
}.filter { it.second?.contains(Regex("(https:)|(http:)")) == true }
|
||||
|
||||
val sources = mutableListOf<Pair<String, String?>>()
|
||||
if (iframeList.any {
|
||||
it.first.contains(
|
||||
"2160p",
|
||||
true
|
||||
)
|
||||
}) {
|
||||
sources.addAll(iframeList.filter {
|
||||
it.first.contains(
|
||||
"2160p",
|
||||
true
|
||||
)
|
||||
})
|
||||
sources.add(iframeList.first {
|
||||
it.first.contains(
|
||||
"1080p",
|
||||
true
|
||||
)
|
||||
})
|
||||
} else {
|
||||
sources.addAll(iframeList.filter { it.first.contains("1080p", true) })
|
||||
}
|
||||
// val sources = mutableListOf<Pair<String, String?>>()
|
||||
// if (iframeList.any {
|
||||
// it.first.contains(
|
||||
// "2160p",
|
||||
// true
|
||||
// )
|
||||
// }) {
|
||||
// sources.addAll(iframeList.filter {
|
||||
// it.first.contains(
|
||||
// "2160p",
|
||||
// true
|
||||
// )
|
||||
// })
|
||||
// sources.add(iframeList.first {
|
||||
// it.first.contains(
|
||||
// "1080p",
|
||||
// true
|
||||
// )
|
||||
// })
|
||||
// } else {
|
||||
// sources.addAll(iframeList.filter { it.first.contains("1080p", true) })
|
||||
// }
|
||||
|
||||
sources.apmap { (quality, link) ->
|
||||
iframeList.apmap { (quality, link) ->
|
||||
val driveLink =
|
||||
if (link?.contains("driveleech") == true) bypassDriveleech(link) else bypassTechmny(
|
||||
link ?: return@apmap
|
||||
|
|
Loading…
Reference in a new issue