Skip to content

Commit 4c610aa

Browse files
authored
Fix: Removed head request from downloads as it is slow and timeout does not work
1 parent 5e90819 commit 4c610aa

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,16 +1327,18 @@ class ResultViewModel2 : ViewModel() {
13271327
isCasting: Boolean = false,
13281328
callback: (Pair<LinkLoadingResult, Int>) -> Unit
13291329
) {
1330+
// TODO Add skip loading here
13301331
loadLinks(result, isVisible = true, sourceTypes, isCasting = isCasting) { links ->
13311332
// Could not find a better way to do this
1332-
val context = AcraApplication.context
1333+
//val context = AcraApplication.context
13331334
postPopup(
13341335
text,
1335-
links.links.amap {
1336-
val size =
1337-
it.getVideoSize()?.let { size -> " " + formatFileSize(context, size) } ?: ""
1338-
txt("${it.name} ${Qualities.getStringByInt(it.quality)}$size")
1339-
}) {
1336+
links.links.map { txt("${it.name} ${Qualities.getStringByInt(it.quality)}") }
1337+
/*.amap {
1338+
val size =
1339+
it.getVideoSize()?.let { size -> " " + formatFileSize(context, size) } ?: ""
1340+
txt("${it.name} ${Qualities.getStringByInt(it.quality)}$size")
1341+
}*/) {
13401342
callback.invoke(links to (it ?: return@postPopup))
13411343
}
13421344
}

0 commit comments

Comments
 (0)