mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d5a4a65ced
3 changed files with 12 additions and 6 deletions
|
@ -92,7 +92,7 @@ open class StreamSB : ExtractorApi() {
|
||||||
}.first()
|
}.first()
|
||||||
val bytes = id.toByteArray()
|
val bytes = id.toByteArray()
|
||||||
val bytesToHex = bytesToHex(bytes)
|
val bytesToHex = bytesToHex(bytes)
|
||||||
val master = "$mainUrl/sources41/6d6144797752744a454267617c7c${bytesToHex.lowercase()}7c7c4e61755a56456f34385243727c7c73747265616d7362/6b4a33767968506e4e71374f7c7c343837323439333133333462353935333633373836643638376337633462333634663539343137373761333635313533333835333763376333393636363133393635366136323733343435323332376137633763373337343732363536313664373336327c7c504d754478413835306633797c7c73747265616d7362"
|
val master = "$mainUrl/sources43/6d6144797752744a454267617c7c${bytesToHex.lowercase()}7c7c4e61755a56456f34385243727c7c73747265616d7362/6b4a33767968506e4e71374f7c7c343837323439333133333462353935333633373836643638376337633462333634663539343137373761333635313533333835333763376333393636363133393635366136323733343435323332376137633763373337343732363536313664373336327c7c504d754478413835306633797c7c73747265616d7362"
|
||||||
val headers = mapOf(
|
val headers = mapOf(
|
||||||
"watchsb" to "streamsb",
|
"watchsb" to "streamsb",
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ class SflixProProvider : BflixProvider() {
|
||||||
}
|
}
|
||||||
|
|
||||||
open class BflixProvider() : MainAPI() {
|
open class BflixProvider() : MainAPI() {
|
||||||
override var mainUrl = "https://bflix.ru"
|
override var mainUrl = "https://bflix.to"
|
||||||
override var name = "Bflix"
|
override var name = "Bflix"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override val hasChromecastSupport = true
|
override val hasChromecastSupport = true
|
||||||
|
@ -43,7 +43,8 @@ open class BflixProvider() : MainAPI() {
|
||||||
val test = soup.select(element).map {
|
val test = soup.select(element).map {
|
||||||
val title = it.selectFirst("h3 a").text()
|
val title = it.selectFirst("h3 a").text()
|
||||||
val link = fixUrl(it.selectFirst("a").attr("href"))
|
val link = fixUrl(it.selectFirst("a").attr("href"))
|
||||||
// val quality = it.selectFirst("div.quality").text()
|
val qualityInfo = it.selectFirst("div.quality").text()
|
||||||
|
val quality = getQualityFromString(qualityInfo)
|
||||||
TvSeriesSearchResponse(
|
TvSeriesSearchResponse(
|
||||||
title,
|
title,
|
||||||
link,
|
link,
|
||||||
|
@ -52,6 +53,7 @@ open class BflixProvider() : MainAPI() {
|
||||||
it.selectFirst("a.poster img").attr("src"),
|
it.selectFirst("a.poster img").attr("src"),
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
quality = quality
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
items.add(HomePageList(name, test))
|
items.add(HomePageList(name, test))
|
||||||
|
@ -178,6 +180,8 @@ open class BflixProvider() : MainAPI() {
|
||||||
val href = fixUrl(it.selectFirst("a").attr("href"))
|
val href = fixUrl(it.selectFirst("a").attr("href"))
|
||||||
val image = it.selectFirst("a.poster img").attr("src")
|
val image = it.selectFirst("a.poster img").attr("src")
|
||||||
val isMovie = href.contains("/movie/")
|
val isMovie = href.contains("/movie/")
|
||||||
|
val qualityInfo = it.selectFirst("div.quality").text()
|
||||||
|
val quality = getQualityFromString(qualityInfo)
|
||||||
|
|
||||||
if (isMovie) {
|
if (isMovie) {
|
||||||
MovieSearchResponse(
|
MovieSearchResponse(
|
||||||
|
@ -186,7 +190,8 @@ open class BflixProvider() : MainAPI() {
|
||||||
this.name,
|
this.name,
|
||||||
TvType.Movie,
|
TvType.Movie,
|
||||||
image,
|
image,
|
||||||
null
|
null,
|
||||||
|
quality = quality
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
TvSeriesSearchResponse(
|
TvSeriesSearchResponse(
|
||||||
|
@ -196,7 +201,8 @@ open class BflixProvider() : MainAPI() {
|
||||||
TvType.TvSeries,
|
TvType.TvSeries,
|
||||||
image,
|
image,
|
||||||
null,
|
null,
|
||||||
null
|
null,
|
||||||
|
quality = quality
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
},
|
},
|
||||||
"BflixProvider": {
|
"BflixProvider": {
|
||||||
"name": "Bflix",
|
"name": "Bflix",
|
||||||
"url": "https://bflix.ru",
|
"url": "https://bflix.to",
|
||||||
"status": 1
|
"status": 1
|
||||||
},
|
},
|
||||||
"FmoviesToProvider": {
|
"FmoviesToProvider": {
|
||||||
|
|
Loading…
Reference in a new issue