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()
|
||||
val bytes = id.toByteArray()
|
||||
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(
|
||||
"watchsb" to "streamsb",
|
||||
)
|
||||
|
|
|
@ -17,7 +17,7 @@ class SflixProProvider : BflixProvider() {
|
|||
}
|
||||
|
||||
open class BflixProvider() : MainAPI() {
|
||||
override var mainUrl = "https://bflix.ru"
|
||||
override var mainUrl = "https://bflix.to"
|
||||
override var name = "Bflix"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
@ -43,7 +43,8 @@ open class BflixProvider() : MainAPI() {
|
|||
val test = soup.select(element).map {
|
||||
val title = it.selectFirst("h3 a").text()
|
||||
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(
|
||||
title,
|
||||
link,
|
||||
|
@ -52,6 +53,7 @@ open class BflixProvider() : MainAPI() {
|
|||
it.selectFirst("a.poster img").attr("src"),
|
||||
null,
|
||||
null,
|
||||
quality = quality
|
||||
)
|
||||
}
|
||||
items.add(HomePageList(name, test))
|
||||
|
@ -178,6 +180,8 @@ open class BflixProvider() : MainAPI() {
|
|||
val href = fixUrl(it.selectFirst("a").attr("href"))
|
||||
val image = it.selectFirst("a.poster img").attr("src")
|
||||
val isMovie = href.contains("/movie/")
|
||||
val qualityInfo = it.selectFirst("div.quality").text()
|
||||
val quality = getQualityFromString(qualityInfo)
|
||||
|
||||
if (isMovie) {
|
||||
MovieSearchResponse(
|
||||
|
@ -186,7 +190,8 @@ open class BflixProvider() : MainAPI() {
|
|||
this.name,
|
||||
TvType.Movie,
|
||||
image,
|
||||
null
|
||||
null,
|
||||
quality = quality
|
||||
)
|
||||
} else {
|
||||
TvSeriesSearchResponse(
|
||||
|
@ -196,7 +201,8 @@ open class BflixProvider() : MainAPI() {
|
|||
TvType.TvSeries,
|
||||
image,
|
||||
null,
|
||||
null
|
||||
null,
|
||||
quality = quality
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
},
|
||||
"BflixProvider": {
|
||||
"name": "Bflix",
|
||||
"url": "https://bflix.ru",
|
||||
"url": "https://bflix.to",
|
||||
"status": 1
|
||||
},
|
||||
"FmoviesToProvider": {
|
||||
|
|
Loading…
Reference in a new issue