From 3c9e8c44a06dd41be1cbd083775d5c96362adc66 Mon Sep 17 00:00:00 2001 From: Sarlay <60151189+Sarlay@users.noreply.github.com> Date: Sat, 13 Nov 2021 16:49:31 +0100 Subject: [PATCH] fixed long loading times in vf-series.org (#240) --- .../lagradost/cloudstream3/movieproviders/VfSerieProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/VfSerieProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/VfSerieProvider.kt index 1621615d..c219cb08 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/VfSerieProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/VfSerieProvider.kt @@ -84,7 +84,8 @@ class VfSerieProvider : MainAPI() { val response = get(data).text val document = Jsoup.parse(response) val players = document.select("ul.TPlayerNv > li") - var number_player = Regex(".*trembed=(.*?)&").find(document.html())?.groupValues?.get(1)!!.toInt() // the starting trembed number of the first player website, some start at 0 other at 1 + val trembed_url = document.selectFirst("div.TPlayerTb > iframe").attr("src") + var number_player = Regex(".*trembed=(.*?)&").find(trembed_url)?.groupValues?.get(1)!!.toInt() // the starting trembed number of the first player website, some start at 0 other at 1 var found = false for (player in players) { if (player.selectFirst("> span").text() == "Vudeo") {