In Frenchstream dood is in reality streamlare

This commit is contained in:
Eddy 2022-09-14 17:50:21 +02:00
parent 2d2f71a24a
commit 1c0e397829

View file

@ -211,6 +211,9 @@ class FrenchStreamProvider : MainAPI() {
if (playerName.contains("Stream.B")) { if (playerName.contains("Stream.B")) {
playerName = it.first.replace("Stream.B", "StreamSB") playerName = it.first.replace("Stream.B", "StreamSB")
} }
if (it.second.contains("streamlare")) {
playerName = "Streamlare"
}
if (playerName.contains(extractor.name, ignoreCase = true)) { if (playerName.contains(extractor.name, ignoreCase = true)) {
val header = app.get( val header = app.get(
"https" + it.second.split("https").get(1), "https" + it.second.split("https").get(1),
@ -219,7 +222,6 @@ class FrenchStreamProvider : MainAPI() {
println(header) println(header)
val urlplayer = it.second val urlplayer = it.second
var playerUrl = when (!urlplayer.isNullOrEmpty()) { var playerUrl = when (!urlplayer.isNullOrEmpty()) {
urlplayer.contains("uqload") -> it.second
urlplayer.contains("opsktp.com") -> header.get("location") urlplayer.contains("opsktp.com") -> header.get("location")
.toString() // case where there is redirection to opsktp .toString() // case where there is redirection to opsktp
@ -307,3 +309,4 @@ class FrenchStreamProvider : MainAPI() {
} }