mirror of
https://github.com/yoyzo/arab
synced 2024-08-15 03:15:00 +00:00
Update FaselHDProvider.kt
This commit is contained in:
parent
93fa22e151
commit
470fa3648f
1 changed files with 23 additions and 13 deletions
|
@ -145,19 +145,29 @@ class FaselHD : MainAPI() {
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val player = app.get(app.get(data).document.select("iframe[name=\"player_iframe\"]").attr("src"), interceptor = cfKiller).document
|
val player = app.get(app.get(data).document.select("iframe[name=\"player_iframe\"]").attr("src"), interceptor = cfKiller, referer = data).document
|
||||||
player.select("div.quality_change button.hd_btn").map {
|
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
this.name,
|
this.name,
|
||||||
this.name,
|
this.name,
|
||||||
it.attr("data-url"),
|
player.select("div.dl-link a").attr("href"),
|
||||||
this.mainUrl,
|
this.mainUrl,
|
||||||
quality = it.text().getIntFromText() ?: Qualities.Unknown.value,
|
Qualities.Unknown.value
|
||||||
isM3u8 = true
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
//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
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue