diff --git a/FaselHDProvider/build.gradle.kts b/FaselHDProvider/build.gradle.kts index 1c289bf..4377cc0 100644 --- a/FaselHDProvider/build.gradle.kts +++ b/FaselHDProvider/build.gradle.kts @@ -1,4 +1,4 @@ -version = 6 +version = 7 cloudstream { authors = listOf( "ImZaw" ) diff --git a/FaselHDProvider/src/main/kotlin/com/faselhd/FaselHDProvider.kt b/FaselHDProvider/src/main/kotlin/com/faselhd/FaselHDProvider.kt index 171ac37..6847a22 100644 --- a/FaselHDProvider/src/main/kotlin/com/faselhd/FaselHDProvider.kt +++ b/FaselHDProvider/src/main/kotlin/com/faselhd/FaselHDProvider.kt @@ -135,9 +135,10 @@ class FaselHD : MainAPI() { } doc.select("div[id=\"seasonList\"] div[class=\"col-xl-2 col-lg-3 col-md-6\"] div.seasonDiv") .not(".active").apmap { it -> - var s = app.get("$mainUrl/?p="+it.attr("data-href")).document + val id = it.attr("onclick").replace(".*\/\?p=|'".toRegex(), "") + var s = app.get("$mainUrl/?p="+id).document if(s.select("title").text() == "Just a moment...") { - s = app.get("$alternativeUrl/?p="+it.attr("data-href"), interceptor = cfKiller).document + s = app.get("$alternativeUrl/?p="+id, interceptor = cfKiller).document } s.select("div.epAll a").map { episodes.add(