fixed duplicate provider

This commit is contained in:
LagradOst 2022-03-16 19:41:56 +01:00
parent 196e7c31e6
commit 0f5971a870
4 changed files with 34 additions and 11 deletions

View file

@ -70,13 +70,13 @@ object APIHolder {
AsianLoadProvider(),
BflixProvider("https://bflix.ru","Bflix"),
BflixProvider("https://fmovies.to","Fmovies.to"),
BflixProvider("https://sflix.pro","Sflix.pro"),
RealBflixProvider(),
FmoviesProvider(),
SflixProProvider(),
SflixProvider("https://sflix.to", "Sflix.to"),
SflixProvider("https://dopebox.to", "Dopebox"),
SflixProvider("https://solarmovie.pe", "Solarmovie"),
RealSflixProvider(),
DopeboxProvider(),
SolarmovieProvider(),
//TmdbProvider(),

View file

@ -7,7 +7,11 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.Jsoup
class BflixProvider(providerUrl: String, providerName: String) : MainAPI() {
class RealBflixProvider : BflixProvider("https://bflix.ru","Bflix")
class FmoviesProvider : BflixProvider("https://fmovies.to","Fmovies.to")
class SflixProProvider : BflixProvider("https://sflix.pro","Sflix.pro")
open class BflixProvider(providerUrl: String, providerName: String) : MainAPI() {
override var mainUrl = providerUrl
override var name = providerName
override val hasMainPage = true

View file

@ -21,7 +21,11 @@ import org.jsoup.nodes.Element
import java.net.URI
import kotlin.system.measureTimeMillis
class SflixProvider(providerUrl: String, providerName: String) : MainAPI() {
class RealSflixProvider : SflixProvider("https://sflix.to", "Sflix.to")
class DopeboxProvider : SflixProvider("https://dopebox.to", "Dopebox")
class SolarmovieProvider : SflixProvider("https://solarmovie.pe", "Solarmovie")
open class SflixProvider(providerUrl: String, providerName: String) : MainAPI() {
override var mainUrl = providerUrl
override var name = providerName

View file

@ -44,17 +44,17 @@
"url": "https://asianembed.io",
"status": 1
},
"BflixProvider": {
"RealBflixProvider": {
"name": "Bflix",
"url": "https://bflix.ru",
"status": 1
},
"BflixProviderClone1": {
"FmoviesProvider": {
"name": "Fmovies.to",
"url": "https://fmovies.to",
"status": 1
},
"BflixProviderClone2": {
"SflixProProvider": {
"name": "Sflix.pro",
"url": "https://sflix.pro",
"status": 1
@ -258,5 +258,20 @@
"name": "Zoro",
"url": "https://zoro.to",
"status": 1
},
"RealSflixProvider": {
"name": "Sflix.to",
"url": "https://sflix.to",
"status": 1
},
"DopeboxProvider": {
"name": "Dopebox",
"url": "https://dopebox.to",
"status": 1
},
"SolarmovieProvider": {
"name": "Solarmovie",
"url": "https://solarmovie.pe",
"status": 1
}
}