uakino: Check for https:
This commit is contained in:
parent
5d19a84477
commit
8a50c03b58
1 changed files with 7 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||||
|
@ -104,7 +103,7 @@ class UakinoProvider : MainAPI() {
|
||||||
val name = eps.text().trim() // Серія 1
|
val name = eps.text().trim() // Серія 1
|
||||||
if (href.isNotEmpty()) {
|
if (href.isNotEmpty()) {
|
||||||
Episode(
|
Episode(
|
||||||
"$href,$name", // ashdi link, Серія 1
|
"$href,$name", // link, Серія 1
|
||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -143,18 +142,21 @@ class UakinoProvider : MainAPI() {
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
Log.d("loadLinks", data)
|
|
||||||
val dataList = data.split(",")
|
val dataList = data.split(",")
|
||||||
|
|
||||||
val responseGet = app.get(dataList[0]).parsedSafe<Responses>() // ajax link
|
val responseGet = app.get(dataList[0]).parsedSafe<Responses>() // ajax link
|
||||||
if (responseGet?.success == true){ // Its serial
|
if (responseGet?.success == true){ // Its serial
|
||||||
responseGet?.response?.let {
|
responseGet?.response?.let {
|
||||||
Jsoup.parse(it).select("div.playlists-videos li:contains(${dataList[1]})").mapNotNull { eps ->
|
Jsoup.parse(it).select("div.playlists-videos li:contains(${dataList[1]})").mapNotNull { eps ->
|
||||||
val href = eps.attr("data-file") // ashdi
|
var href = eps.attr("data-file") // ashdi
|
||||||
|
// Can be without https:
|
||||||
|
if (! href.contains("https://")) {
|
||||||
|
href = "https:$href"
|
||||||
|
}
|
||||||
val dub = eps.attr("data-voice") // FanWoxUA
|
val dub = eps.attr("data-voice") // FanWoxUA
|
||||||
|
|
||||||
// Get m3u from player script
|
// Get m3u from player script
|
||||||
app.get("https:$href", referer = "$mainUrl/").document.select("script").map { script ->
|
app.get(href, referer = "$mainUrl/").document.select("script").map { script ->
|
||||||
if (script.data().contains("var player = new Playerjs({")) {
|
if (script.data().contains("var player = new Playerjs({")) {
|
||||||
val m3uLink = script.data().substringAfterLast("file:\"").substringBefore("\",")
|
val m3uLink = script.data().substringAfterLast("file:\"").substringBefore("\",")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue