From 62cab062e385bb20beb0660f62cc05a2262115aa Mon Sep 17 00:00:00 2001 From: hexated Date: Sun, 10 Sep 2023 17:03:04 +0700 Subject: [PATCH] sora: added timeout in index --- .../main/kotlin/com/hexated/SoraExtractor.kt | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 90269e66..3f7e6719 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -1120,30 +1120,30 @@ object SoraExtractor : SoraStream() { } }.filter { it.second?.contains(Regex("(https:)|(http:)")) == true } - val sources = mutableListOf>() - 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>() +// 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