anitubeinua: add all qual. for csst player

This commit is contained in:
CakesTwix 2023-03-04 09:04:10 +02:00
parent 3a4c8ae994
commit f4961da4f4
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 13 additions and 13 deletions

View file

@ -299,18 +299,19 @@ class AnitubeinuaProvider : MainAPI() {
) )
} }
contains("https://csst.online/embed/") -> { contains("https://csst.online/embed/") -> {
callback.invoke( csstExtractor().ParseUrl(Jsoup.parse(dub[dataList[0].toInt()].code).select("iframe")
ExtractorLink( .attr("src")).split(",").forEach{
decode(playerNamesArray[index]), callback.invoke(
name = decode(playerNamesArray[index]), ExtractorLink(
csstExtractor().ParseUrl(Jsoup.parse(dub[dataList[0].toInt()].code).select("iframe") decode(playerNamesArray[index]),
.attr("src")).split(",")[0].substringAfter("]"), name = "${decode(playerNamesArray[index])} ${it.substringBefore("]").drop(1)}",
"", it.substringAfter("]"),
0, "",
isM3u8 = false 0,
isM3u8 = false
)
) )
) }
} }
else -> {} else -> {}
} }

View file

@ -1,6 +1,5 @@
package com.lagradost.extractors package com.lagradost.extractors
import android.util.Log
import com.lagradost.cloudstream3.app import com.lagradost.cloudstream3.app
class csstExtractor { class csstExtractor {
@ -9,7 +8,7 @@ class csstExtractor {
.substringAfterLast("file:\"") .substringAfterLast("file:\"")
.substringBefore("\",") .substringBefore("\",")
Log.d("load-debug", playerLinks) // Log.d("load-debug", playerLinks)
return playerLinks return playerLinks
} }