Update FaselHDProvider.kt

This commit is contained in:
Zaw 2022-08-21 22:36:58 +03:00
parent 93fa22e151
commit 470fa3648f

View file

@ -145,19 +145,29 @@ class FaselHD : MainAPI() {
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
val player = app.get(app.get(data).document.select("iframe[name=\"player_iframe\"]").attr("src"), interceptor = cfKiller).document
player.select("div.quality_change button.hd_btn").map {
val player = app.get(app.get(data).document.select("iframe[name=\"player_iframe\"]").attr("src"), interceptor = cfKiller, referer = data).document
callback.invoke(
ExtractorLink(
this.name,
this.name,
it.attr("data-url"),
player.select("div.dl-link a").attr("href"),
this.mainUrl,
quality = it.text().getIntFromText() ?: Qualities.Unknown.value,
isM3u8 = true
Qualities.Unknown.value
)
)
}
//player.select("div.quality_change button.hd_btn").map {
// callback.invoke(
// ExtractorLink(
// this.name,
// this.name,
// it.attr("data-url"),
// this.mainUrl,
// quality = it.text().getIntFromText() ?: Qualities.Unknown.value,
// isM3u8 = true
// )
// )
//}
return true
}
}