mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
parse json upon start
This commit is contained in:
parent
e58793b390
commit
0b8e4fad44
81 changed files with 367 additions and 298 deletions
|
@ -6,6 +6,7 @@ import android.net.Uri
|
|||
import android.util.Base64.encodeToString
|
||||
import androidx.annotation.WorkerThread
|
||||
import androidx.preference.PreferenceManager
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature
|
||||
import com.fasterxml.jackson.databind.json.JsonMapper
|
||||
import com.fasterxml.jackson.module.kotlin.KotlinModule
|
||||
|
@ -31,86 +32,84 @@ object APIHolder {
|
|||
|
||||
private const val defProvider = 0
|
||||
|
||||
val apis = arrayListOf(
|
||||
PelisplusProvider(),
|
||||
PelisplusHDProvider(),
|
||||
PeliSmartProvider(),
|
||||
GogoanimeProvider(),
|
||||
AllAnimeProvider(),
|
||||
AnimekisaProvider(),
|
||||
//ShiroProvider(), // v2 fucked me
|
||||
AnimeFlickProvider(),
|
||||
AnimeflvnetProvider(),
|
||||
val allProviders by lazy {
|
||||
arrayListOf(
|
||||
PelisplusProvider(),
|
||||
PelisplusHDProvider(),
|
||||
PeliSmartProvider(),
|
||||
GogoanimeProvider(),
|
||||
AllAnimeProvider(),
|
||||
AnimekisaProvider(),
|
||||
//ShiroProvider(), // v2 fucked me
|
||||
AnimeFlickProvider(),
|
||||
AnimeflvnetProvider(),
|
||||
|
||||
TenshiProvider(),
|
||||
WcoProvider(),
|
||||
// MeloMovieProvider(), // Captcha for links
|
||||
DubbedAnimeProvider(),
|
||||
DoramasYTProvider(),
|
||||
CinecalidadProvider(),
|
||||
CuevanaProvider(),
|
||||
EntrepeliculasyseriesProvider(),
|
||||
PelisflixProvider(),
|
||||
SeriesflixProvider(),
|
||||
IHaveNoTvProvider(), // Documentaries provider
|
||||
//LookMovieProvider(), // RECAPTCHA (Please allow up to 5 seconds...)
|
||||
VMoveeProvider(),
|
||||
WatchCartoonOnlineProvider(),
|
||||
AllMoviesForYouProvider(),
|
||||
ApiMDBProvider(),
|
||||
TenshiProvider(),
|
||||
WcoProvider(),
|
||||
// MeloMovieProvider(), // Captcha for links
|
||||
DubbedAnimeProvider(),
|
||||
DoramasYTProvider(),
|
||||
CinecalidadProvider(),
|
||||
CuevanaProvider(),
|
||||
EntrepeliculasyseriesProvider(),
|
||||
PelisflixProvider(),
|
||||
SeriesflixProvider(),
|
||||
IHaveNoTvProvider(), // Documentaries provider
|
||||
//LookMovieProvider(), // RECAPTCHA (Please allow up to 5 seconds...)
|
||||
VMoveeProvider(),
|
||||
WatchCartoonOnlineProvider(),
|
||||
AllMoviesForYouProvider(),
|
||||
ApiMDBProvider(),
|
||||
|
||||
MonoschinosProvider(),
|
||||
MonoschinosProvider(),
|
||||
|
||||
VidEmbedProvider(),
|
||||
VfFilmProvider(),
|
||||
VfSerieProvider(),
|
||||
FrenchStreamProvider(),
|
||||
VidEmbedProvider(),
|
||||
VfFilmProvider(),
|
||||
VfSerieProvider(),
|
||||
FrenchStreamProvider(),
|
||||
|
||||
AsianLoadProvider(),
|
||||
AsianLoadProvider(),
|
||||
|
||||
BflixProvider("https://bflix.ru","Bflix"),
|
||||
BflixProvider("https://fmovies.to","Fmovies.to"),
|
||||
BflixProvider("https://sflix.pro","Sflix.pro"),
|
||||
BflixProvider("https://bflix.ru","Bflix"),
|
||||
BflixProvider("https://fmovies.to","Fmovies.to"),
|
||||
BflixProvider("https://sflix.pro","Sflix.pro"),
|
||||
|
||||
SflixProvider("https://sflix.to", "Sflix.to"),
|
||||
SflixProvider("https://dopebox.to", "Dopebox"),
|
||||
SflixProvider("https://solarmovie.pe", "Solarmovie"),
|
||||
SflixProvider("https://sflix.to", "Sflix.to"),
|
||||
SflixProvider("https://dopebox.to", "Dopebox"),
|
||||
SflixProvider("https://solarmovie.pe", "Solarmovie"),
|
||||
|
||||
//TmdbProvider(),
|
||||
//TmdbProvider(),
|
||||
|
||||
FilmanProvider(),
|
||||
FilmanProvider(),
|
||||
|
||||
ZoroProvider(),
|
||||
PinoyMoviePediaProvider(),
|
||||
PinoyHDXyzProvider(),
|
||||
PinoyMoviesEsProvider(),
|
||||
TrailersTwoProvider(),
|
||||
TwoEmbedProvider(),
|
||||
DramaSeeProvider(),
|
||||
WatchAsianProvider(),
|
||||
KdramaHoodProvider(),
|
||||
AkwamProvider(),
|
||||
MyCimaProvider(),
|
||||
EgyBestProvider(),
|
||||
AnimePaheProvider(),
|
||||
NineAnimeProvider(),
|
||||
AnimeWorldProvider(),
|
||||
SoaptwoDayProvider(),
|
||||
ZoroProvider(),
|
||||
PinoyMoviePediaProvider(),
|
||||
PinoyHDXyzProvider(),
|
||||
PinoyMoviesEsProvider(),
|
||||
TrailersTwoProvider(),
|
||||
TwoEmbedProvider(),
|
||||
DramaSeeProvider(),
|
||||
WatchAsianProvider(),
|
||||
KdramaHoodProvider(),
|
||||
AkwamProvider(),
|
||||
MyCimaProvider(),
|
||||
EgyBestProvider(),
|
||||
AnimePaheProvider(),
|
||||
NineAnimeProvider(),
|
||||
AnimeWorldProvider(),
|
||||
SoaptwoDayProvider(),
|
||||
|
||||
CrossTmdbProvider(),
|
||||
)
|
||||
CrossTmdbProvider(),
|
||||
|
||||
val restrictedApis = arrayListOf(
|
||||
// TrailersToProvider(), // be aware that this is fuckery
|
||||
// NyaaProvider(), // torrents in cs3 is wack
|
||||
// ThenosProvider(), // ddos protection and wacked links
|
||||
AsiaFlixProvider(),
|
||||
)
|
||||
//restricted
|
||||
AsiaFlixProvider(),
|
||||
//backwards
|
||||
KawaiifuProvider(), // removed due to cloudflare
|
||||
HDMProvider(),// removed due to cloudflare
|
||||
)
|
||||
}
|
||||
|
||||
private val backwardsCompatibleProviders = arrayListOf(
|
||||
KawaiifuProvider(), // removed due to cloudflare
|
||||
HDMProvider(),// removed due to cloudflare
|
||||
)
|
||||
var apis : List<MainAPI> = arrayListOf()
|
||||
|
||||
fun getApiFromName(apiName: String?): MainAPI {
|
||||
return getApiFromNameNull(apiName) ?: apis[defProvider]
|
||||
|
@ -118,15 +117,7 @@ object APIHolder {
|
|||
|
||||
fun getApiFromNameNull(apiName: String?): MainAPI? {
|
||||
if (apiName == null) return null
|
||||
for (api in apis) {
|
||||
if (apiName == api.name)
|
||||
return api
|
||||
}
|
||||
for (api in restrictedApis) {
|
||||
if (apiName == api.name)
|
||||
return api
|
||||
}
|
||||
for (api in backwardsCompatibleProviders) {
|
||||
for (api in allProviders) {
|
||||
if (apiName == api.name)
|
||||
return api
|
||||
}
|
||||
|
@ -281,10 +272,45 @@ object APIHolder {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
0 = Site not good
|
||||
1 = All good
|
||||
2 = Slow, heavy traffic
|
||||
3 = restricted, must donate 30 benenes to use
|
||||
*/
|
||||
const val PROVIDER_STATUS_KEY = "PROVIDER_STATUS_KEY"
|
||||
const val PROVIDER_STATUS_URL = "https://raw.githubusercontent.com/LagradOst/CloudStream-3/master/providers.json"
|
||||
const val PROVIDER_STATUS_BETA_ONLY = 3
|
||||
const val PROVIDER_STATUS_SLOW = 2
|
||||
const val PROVIDER_STATUS_OK = 1
|
||||
const val PROVIDER_STATUS_DOWN = 0
|
||||
|
||||
data class ProvidersInfoJson(
|
||||
@JsonProperty("name") var name: String,
|
||||
@JsonProperty("url") var url: String,
|
||||
@JsonProperty("status") var status: Int,
|
||||
)
|
||||
|
||||
/**Every provider will **not** have try catch built in, so handle exceptions when calling these functions*/
|
||||
abstract class MainAPI {
|
||||
open val name = "NONE"
|
||||
open val mainUrl = "NONE"
|
||||
companion object {
|
||||
var overrideData : HashMap<String, ProvidersInfoJson>? = null
|
||||
}
|
||||
|
||||
public fun overrideWithNewData(data : ProvidersInfoJson) {
|
||||
this.name = data.name
|
||||
this.mainUrl = data.url
|
||||
}
|
||||
|
||||
init {
|
||||
overrideData?.get(this.javaClass.simpleName)?.let { data ->
|
||||
overrideWithNewData(data)
|
||||
}
|
||||
}
|
||||
|
||||
open var name = "NONE"
|
||||
open var mainUrl = "NONE"
|
||||
|
||||
//open val uniqueId : Int by lazy { this.name.hashCode() } // in case of duplicate providers you can have a shared id
|
||||
|
||||
|
@ -317,17 +343,17 @@ abstract class MainAPI {
|
|||
open val providerType = ProviderType.DirectProvider
|
||||
|
||||
@WorkerThread
|
||||
suspend open fun getMainPage(): HomePageResponse? {
|
||||
open suspend fun getMainPage(): HomePageResponse? {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
suspend open fun search(query: String): List<SearchResponse>? {
|
||||
open suspend fun search(query: String): List<SearchResponse>? {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
suspend open fun quickSearch(query: String): List<SearchResponse>? {
|
||||
open suspend fun quickSearch(query: String): List<SearchResponse>? {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
|
@ -336,7 +362,7 @@ abstract class MainAPI {
|
|||
* Based on data from search() or getMainPage() it generates a LoadResponse,
|
||||
* basically opening the info page from a link.
|
||||
* */
|
||||
suspend open fun load(url: String): LoadResponse? {
|
||||
open suspend fun load(url: String): LoadResponse? {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
|
@ -350,13 +376,13 @@ abstract class MainAPI {
|
|||
* if the need arises.
|
||||
* */
|
||||
@WorkerThread
|
||||
suspend open fun extractorVerifierJob(extractorData: String?) {
|
||||
open suspend fun extractorVerifierJob(extractorData: String?) {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
/**Callback is fired once a link is found, will return true if method is executed successfully*/
|
||||
@WorkerThread
|
||||
suspend open fun loadLinks(
|
||||
open suspend fun loadLinks(
|
||||
data: String,
|
||||
isCasting: Boolean,
|
||||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
|
|
|
@ -23,9 +23,9 @@ import androidx.preference.PreferenceManager
|
|||
import com.google.android.gms.cast.framework.*
|
||||
import com.google.android.material.navigationrail.NavigationRailView
|
||||
import com.jaredrummler.android.colorpicker.ColorPickerDialogListener
|
||||
import com.lagradost.cloudstream3.APIHolder.allProviders
|
||||
import com.lagradost.cloudstream3.APIHolder.apis
|
||||
import com.lagradost.cloudstream3.APIHolder.getApiDubstatusSettings
|
||||
import com.lagradost.cloudstream3.APIHolder.restrictedApis
|
||||
import com.lagradost.cloudstream3.CommonActivity.backEvent
|
||||
import com.lagradost.cloudstream3.CommonActivity.loadThemes
|
||||
import com.lagradost.cloudstream3.CommonActivity.onColorSelectedEvent
|
||||
|
@ -46,9 +46,12 @@ import com.lagradost.cloudstream3.ui.settings.SettingsFragment.Companion.isTvSet
|
|||
import com.lagradost.cloudstream3.utils.AppUtils.isCastApiAvailable
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.loadCache
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.loadResult
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||
import com.lagradost.cloudstream3.utils.BackupUtils.setUpBackup
|
||||
import com.lagradost.cloudstream3.utils.Coroutines.main
|
||||
import com.lagradost.cloudstream3.utils.DataStore.getKey
|
||||
import com.lagradost.cloudstream3.utils.DataStore.removeKey
|
||||
import com.lagradost.cloudstream3.utils.DataStore.setKey
|
||||
import com.lagradost.cloudstream3.utils.DataStoreHelper.setViewPos
|
||||
import com.lagradost.cloudstream3.utils.InAppUpdater.Companion.runAutoUpdate
|
||||
import com.lagradost.cloudstream3.utils.UIHelper.changeStatusBarState
|
||||
|
@ -60,6 +63,9 @@ import com.lagradost.cloudstream3.utils.UIHelper.navigate
|
|||
import com.lagradost.cloudstream3.utils.UIHelper.requestRW
|
||||
import kotlinx.android.synthetic.main.activity_main.*
|
||||
import kotlinx.android.synthetic.main.fragment_result_swipe.*
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.coroutines.withContext
|
||||
import java.io.File
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
|
@ -308,6 +314,70 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
for (api in OAuth2accountApis) {
|
||||
api.init()
|
||||
}
|
||||
|
||||
// must give benenes to get beta providers
|
||||
val hasBenene = try {
|
||||
val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
val count = settingsManager.getInt(getString(R.string.benene_count), 0)
|
||||
count > 30
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
false
|
||||
}
|
||||
|
||||
// this pulls the latest data so ppl don't have to update to simply change provider url
|
||||
try {
|
||||
runBlocking {
|
||||
withContext(Dispatchers.IO) {
|
||||
val cacheStr: String? = getKey(PROVIDER_STATUS_KEY)
|
||||
val cache : HashMap<String, ProvidersInfoJson>? = cacheStr?.let { tryParseJson(cacheStr) }
|
||||
if (cache != null) {
|
||||
// if cache is found then spin up a new request, but dont wait
|
||||
main {
|
||||
try {
|
||||
val txt = app.get(PROVIDER_STATUS_URL).text
|
||||
val newCache = tryParseJson<HashMap<String, ProvidersInfoJson>>(txt)
|
||||
setKey(PROVIDER_STATUS_KEY, txt)
|
||||
MainAPI.overrideData = newCache // update all new providers
|
||||
for (api in apis) { // update current providers
|
||||
newCache?.get(api.javaClass.simpleName)?.let { data ->
|
||||
api.overrideWithNewData(data)
|
||||
}
|
||||
}
|
||||
} catch (e : Exception) {
|
||||
logError(e)
|
||||
}
|
||||
}
|
||||
cache
|
||||
} else {
|
||||
// if it is the first time the user has used the app then wait for a request to update all providers
|
||||
val txt = app.get(PROVIDER_STATUS_URL).text
|
||||
setKey(PROVIDER_STATUS_KEY, txt)
|
||||
val newCache = tryParseJson<HashMap<String, ProvidersInfoJson>>(txt)
|
||||
newCache
|
||||
}?.let { providersJsonMap ->
|
||||
MainAPI.overrideData = providersJsonMap
|
||||
val acceptableProviders =
|
||||
providersJsonMap.filter { it.value.status == PROVIDER_STATUS_OK || it.value.status == PROVIDER_STATUS_SLOW }
|
||||
.map { it.key }.toSet()
|
||||
|
||||
val restrictedApis =
|
||||
if (hasBenene) providersJsonMap.filter { it.value.status == PROVIDER_STATUS_BETA_ONLY }
|
||||
.map { it.key }.toSet() else emptySet()
|
||||
|
||||
apis = allProviders.filter { api ->
|
||||
val name = api.javaClass.simpleName
|
||||
acceptableProviders.contains(name) || restrictedApis.contains(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
apis = allProviders
|
||||
e.printStackTrace()
|
||||
logError(e)
|
||||
}
|
||||
|
||||
loadThemes(this)
|
||||
updateLocale()
|
||||
app.initClient(this)
|
||||
|
@ -458,10 +528,8 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
createISO()
|
||||
}*/
|
||||
|
||||
var providersString = "Current providers are:\n"
|
||||
var providersAndroidManifestString = "Current androidmanifest should be:\n"
|
||||
for (api in apis) {
|
||||
providersString += "+ ${api.mainUrl}\n"
|
||||
for (api in allProviders) {
|
||||
providersAndroidManifestString += "<data android:scheme=\"https\" android:host=\"${
|
||||
api.mainUrl.removePrefix(
|
||||
"https://"
|
||||
|
@ -469,17 +537,6 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
}\" android:pathPrefix=\"/\"/>\n"
|
||||
}
|
||||
|
||||
for (api in restrictedApis) {
|
||||
providersString += "+ ${api.mainUrl}\n"
|
||||
providersAndroidManifestString += "<data android:scheme=\"https\" android:host=\"${
|
||||
api.mainUrl.removePrefix(
|
||||
"https://"
|
||||
)
|
||||
}\" android:pathPrefix=\"/\"/>\n"
|
||||
}
|
||||
println(providersString)
|
||||
|
||||
|
||||
println(providersAndroidManifestString)
|
||||
|
||||
handleAppIntent(intent)
|
||||
|
@ -488,15 +545,6 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
runAutoUpdate()
|
||||
}
|
||||
|
||||
// must give benenes to get beta providers
|
||||
try {
|
||||
val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
val count = settingsManager.getInt(getString(R.string.benene_count), 0)
|
||||
if (count > 30 && restrictedApis.size > 0 && !apis.contains(restrictedApis.first()))
|
||||
apis.addAll(restrictedApis)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
APIRepository.dubStatusActive = getApiDubstatusSettings()
|
||||
|
||||
try {
|
||||
|
@ -507,7 +555,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
} catch (e: Exception) {
|
||||
logError(e)
|
||||
}
|
||||
|
||||
println("Loaded everything")
|
||||
/*
|
||||
val relativePath = (Environment.DIRECTORY_DOWNLOADS) + File.separatorChar
|
||||
val displayName = "output.dex" //""output.dex"
|
||||
|
|
|
@ -17,8 +17,8 @@ import java.util.*
|
|||
|
||||
|
||||
class AllAnimeProvider : MainAPI() {
|
||||
override val mainUrl = "https://allanime.site"
|
||||
override val name = "AllAnime"
|
||||
override var mainUrl = "https://allanime.site"
|
||||
override var name = "AllAnime"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = false
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ class AnimeFlickProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
override val mainUrl = "https://animeflick.net"
|
||||
override val name = "AnimeFlick"
|
||||
override var mainUrl = "https://animeflick.net"
|
||||
override var name = "AnimeFlick"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = false
|
||||
|
||||
|
|
|
@ -44,8 +44,8 @@ class AnimePaheProvider : MainAPI() {
|
|||
Regex("""(^(?:https?:)?(?://)?(?:www\.)?(?:youtu\.be/|youtube(?:-nocookie)?\.(?:[A-Za-z]{2,4}|[A-Za-z]{2,3}\.[A-Za-z]{2})/)(?:watch|embed/|vi?/)*(?:\?[\w=&]*vi?=)?[^#&?/]{11}.*${'$'})""")
|
||||
}
|
||||
|
||||
override val mainUrl = MAIN_URL
|
||||
override val name = "AnimePahe"
|
||||
override var mainUrl = MAIN_URL
|
||||
override var name = "AnimePahe"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
|
||||
class AnimeWorldProvider : MainAPI() {
|
||||
override val mainUrl = "https://www.animeworld.tv"
|
||||
override val name = "AnimeWorld"
|
||||
override var mainUrl = "https://www.animeworld.tv"
|
||||
override var name = "AnimeWorld"
|
||||
override val lang = "it"
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ class AnimeflvnetProvider:MainAPI() {
|
|||
else TvType.Anime
|
||||
}
|
||||
}
|
||||
override val mainUrl = "https://www3.animeflv.net"
|
||||
override val name = "Animeflv.net"
|
||||
override var mainUrl = "https://www3.animeflv.net"
|
||||
override var name = "Animeflv.net"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -12,8 +12,8 @@ import kotlin.collections.ArrayList
|
|||
|
||||
class AnimekisaProvider : MainAPI() {
|
||||
|
||||
override val mainUrl = "https://animekisa.in"
|
||||
override val name = "Animekisa"
|
||||
override var mainUrl = "https://animekisa.in"
|
||||
override var name = "Animekisa"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -11,8 +11,8 @@ import org.jsoup.Jsoup
|
|||
import java.util.*
|
||||
|
||||
class DubbedAnimeProvider : MainAPI() {
|
||||
override val mainUrl = "https://bestdubbedanime.com"
|
||||
override val name = "DubbedAnime"
|
||||
override var mainUrl = "https://bestdubbedanime.com"
|
||||
override var name = "DubbedAnime"
|
||||
override val hasQuickSearch = true
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -56,8 +56,8 @@ class GogoanimeProvider : MainAPI() {
|
|||
.toByteArray()
|
||||
}
|
||||
|
||||
override val mainUrl = "https://gogoanime.film"
|
||||
override val name = "GogoAnime"
|
||||
override var mainUrl = "https://gogoanime.film"
|
||||
override var name = "GogoAnime"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.jsoup.Jsoup
|
|||
import java.util.*
|
||||
|
||||
class KawaiifuProvider : MainAPI() {
|
||||
override val mainUrl = "https://kawaiifu.com"
|
||||
override val name = "Kawaiifu"
|
||||
override var mainUrl = "https://kawaiifu.com"
|
||||
override var name = "Kawaiifu"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ class MonoschinosProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
override val mainUrl = "https://monoschinos2.com"
|
||||
override val name = "Monoschinos"
|
||||
override var mainUrl = "https://monoschinos2.com"
|
||||
override var name = "Monoschinos"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -10,8 +10,8 @@ import org.jsoup.Jsoup
|
|||
import java.util.*
|
||||
|
||||
class NineAnimeProvider : MainAPI() {
|
||||
override val mainUrl = "https://9anime.center"
|
||||
override val name = "9Anime"
|
||||
override var mainUrl = "https://9anime.center"
|
||||
override var name = "9Anime"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -25,8 +25,8 @@ class TenshiProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
override val mainUrl = "https://tenshi.moe"
|
||||
override val name = "Tenshi.moe"
|
||||
override var mainUrl = "https://tenshi.moe"
|
||||
override var name = "Tenshi.moe"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(TvType.Anime, TvType.AnimeMovie, TvType.OVA)
|
||||
|
|
|
@ -12,8 +12,8 @@ import java.util.*
|
|||
|
||||
|
||||
class WatchCartoonOnlineProvider : MainAPI() {
|
||||
override val name = "WatchCartoonOnline"
|
||||
override val mainUrl = "https://www.wcostream.com"
|
||||
override var name = "WatchCartoonOnline"
|
||||
override var mainUrl = "https://www.wcostream.com"
|
||||
|
||||
override val supportedTypes = setOf(
|
||||
TvType.Cartoon,
|
||||
|
|
|
@ -19,8 +19,8 @@ class WcoProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
override val mainUrl = "https://wcostream.cc"
|
||||
override val name = "WCO Stream"
|
||||
override var mainUrl = "https://wcostream.cc"
|
||||
override var name = "WCO Stream"
|
||||
override val hasQuickSearch = true
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ import java.net.URI
|
|||
import java.util.*
|
||||
|
||||
class ZoroProvider : MainAPI() {
|
||||
override val mainUrl = "https://zoro.to"
|
||||
override val name = "Zoro"
|
||||
override var mainUrl = "https://zoro.to"
|
||||
override var name = "Zoro"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -5,8 +5,8 @@ import com.lagradost.cloudstream3.utils.*
|
|||
import java.net.URI
|
||||
|
||||
class AsianLoad : ExtractorApi() {
|
||||
override val name = "AsianLoad"
|
||||
override val mainUrl = "https://asianembed.io"
|
||||
override var name = "AsianLoad"
|
||||
override var mainUrl = "https://asianembed.io"
|
||||
override val requiresReferer = true
|
||||
|
||||
private val sourceRegex = Regex("""sources:[\W\w]*?file:\s*?["'](.*?)["']""")
|
||||
|
|
|
@ -7,21 +7,21 @@ import com.lagradost.cloudstream3.utils.Qualities
|
|||
import kotlinx.coroutines.delay
|
||||
|
||||
class DoodToExtractor : DoodLaExtractor() {
|
||||
override val mainUrl = "https://dood.to"
|
||||
override var mainUrl = "https://dood.to"
|
||||
}
|
||||
|
||||
class DoodSoExtractor : DoodLaExtractor() {
|
||||
override val mainUrl = "https://dood.so"
|
||||
override var mainUrl = "https://dood.so"
|
||||
}
|
||||
|
||||
class DoodWsExtractor : DoodLaExtractor() {
|
||||
override val mainUrl = "https://dood.ws"
|
||||
override var mainUrl = "https://dood.ws"
|
||||
}
|
||||
|
||||
|
||||
open class DoodLaExtractor : ExtractorApi() {
|
||||
override val name = "DoodStream"
|
||||
override val mainUrl = "https://dood.la"
|
||||
override var name = "DoodStream"
|
||||
override var mainUrl = "https://dood.la"
|
||||
override val requiresReferer = false
|
||||
|
||||
override fun getExtractorUrl(id: String): String {
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.lagradost.cloudstream3.utils.*
|
|||
import com.lagradost.cloudstream3.app
|
||||
|
||||
class Evoload1 : Evoload() {
|
||||
override val mainUrl = "https://evoload.io"
|
||||
override var mainUrl = "https://evoload.io"
|
||||
}
|
||||
|
||||
open class Evoload : ExtractorApi() {
|
||||
|
|
|
@ -12,8 +12,8 @@ import com.lagradost.cloudstream3.utils.getQualityFromName
|
|||
|
||||
|
||||
open class GenericM3U8 : ExtractorApi() {
|
||||
override val name = "Upstream"
|
||||
override val mainUrl = "https://upstream.to"
|
||||
override var name = "Upstream"
|
||||
override var mainUrl = "https://upstream.to"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.app
|
|||
|
||||
|
||||
open class Jawcloud : ExtractorApi() {
|
||||
override val name = "Jawcloud"
|
||||
override val mainUrl = "https://jawcloud.co"
|
||||
override var name = "Jawcloud"
|
||||
override var mainUrl = "https://jawcloud.co"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
||||
|
|
|
@ -11,8 +11,8 @@ import com.lagradost.cloudstream3.utils.M3u8Helper
|
|||
import com.lagradost.cloudstream3.utils.getQualityFromName
|
||||
|
||||
open class Mcloud : ExtractorApi() {
|
||||
override val name = "Mcloud"
|
||||
override val mainUrl = "https://mcloud.to"
|
||||
override var name = "Mcloud"
|
||||
override var mainUrl = "https://mcloud.to"
|
||||
override val requiresReferer = true
|
||||
val headers = mapOf(
|
||||
"Host" to "mcloud.to",
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.lagradost.cloudstream3.app
|
|||
import com.lagradost.cloudstream3.utils.*
|
||||
|
||||
class MixDrop : ExtractorApi() {
|
||||
override val name = "MixDrop"
|
||||
override val mainUrl = "https://mixdrop.co"
|
||||
override var name = "MixDrop"
|
||||
override var mainUrl = "https://mixdrop.co"
|
||||
private val srcRegex = Regex("""wurl.*?=.*?"(.*?)";""")
|
||||
override val requiresReferer = false
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import com.lagradost.cloudstream3.utils.Qualities
|
|||
import com.lagradost.cloudstream3.utils.getAndUnpack
|
||||
|
||||
class Mp4Upload : ExtractorApi() {
|
||||
override val name = "Mp4Upload"
|
||||
override val mainUrl = "https://www.mp4upload.com"
|
||||
override var name = "Mp4Upload"
|
||||
override var mainUrl = "https://www.mp4upload.com"
|
||||
private val srcRegex = Regex("""player\.src\("(.*?)"""")
|
||||
override val requiresReferer = true
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.getQualityFromName
|
|||
import java.net.URI
|
||||
|
||||
class MultiQuality : ExtractorApi() {
|
||||
override val name = "MultiQuality"
|
||||
override val mainUrl = "https://gogo-play.net"
|
||||
override var name = "MultiQuality"
|
||||
override var mainUrl = "https://gogo-play.net"
|
||||
private val sourceRegex = Regex("""file:\s*['"](.*?)['"],label:\s*['"](.*?)['"]""")
|
||||
private val m3u8Regex = Regex(""".*?(\d*).m3u8""")
|
||||
private val urlRegex = Regex("""(.*?)([^/]+$)""")
|
||||
|
|
|
@ -25,8 +25,8 @@ data class Videos (
|
|||
)
|
||||
|
||||
open class OkRu : ExtractorApi() {
|
||||
override val name = "Okru"
|
||||
override val mainUrl = "http://ok.ru"
|
||||
override var name = "Okru"
|
||||
override var mainUrl = "http://ok.ru"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.app
|
|||
|
||||
|
||||
open class PlayerVoxzer : ExtractorApi() {
|
||||
override val name = "Voxzer"
|
||||
override val mainUrl = "https://player.voxzer.org"
|
||||
override var name = "Voxzer"
|
||||
override var mainUrl = "https://player.voxzer.org"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
||||
|
|
|
@ -10,16 +10,16 @@ import com.lagradost.cloudstream3.utils.getPostForm
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
//class SBPlay1 : SBPlay() {
|
||||
// override val mainUrl = "https://sbplay1.com"
|
||||
// override var mainUrl = "https://sbplay1.com"
|
||||
//}
|
||||
|
||||
//class SBPlay2 : SBPlay() {
|
||||
// override val mainUrl = "https://sbplay2.com"
|
||||
// override var mainUrl = "https://sbplay2.com"
|
||||
//}
|
||||
|
||||
open class SBPlay : ExtractorApi() {
|
||||
override val mainUrl = "https://sbplay.one"
|
||||
override val name = "SBPlay"
|
||||
override var mainUrl = "https://sbplay.one"
|
||||
override var name = "SBPlay"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
|
|
|
@ -9,46 +9,46 @@ import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
|||
|
||||
|
||||
class StreamSB1 : StreamSB() {
|
||||
override val mainUrl = "https://sbplay1.com"
|
||||
override var mainUrl = "https://sbplay1.com"
|
||||
}
|
||||
|
||||
class StreamSB2 : StreamSB() {
|
||||
override val mainUrl = "https://sbplay2.com"
|
||||
override var mainUrl = "https://sbplay2.com"
|
||||
}
|
||||
|
||||
class StreamSB3 : StreamSB() {
|
||||
override val mainUrl = "https://sbplay3.com"
|
||||
override var mainUrl = "https://sbplay3.com"
|
||||
}
|
||||
|
||||
class StreamSB4 : StreamSB() {
|
||||
override val mainUrl = "https://cloudemb.com"
|
||||
override var mainUrl = "https://cloudemb.com"
|
||||
}
|
||||
|
||||
class StreamSB5 : StreamSB() {
|
||||
override val mainUrl = "https://sbplay.org"
|
||||
override var mainUrl = "https://sbplay.org"
|
||||
}
|
||||
|
||||
class StreamSB6 : StreamSB() {
|
||||
override val mainUrl = "https://embedsb.com"
|
||||
override var mainUrl = "https://embedsb.com"
|
||||
}
|
||||
|
||||
class StreamSB7 : StreamSB() {
|
||||
override val mainUrl = "https://pelistop.co"
|
||||
override var mainUrl = "https://pelistop.co"
|
||||
}
|
||||
|
||||
class StreamSB8 : StreamSB() {
|
||||
override val mainUrl = "https://streamsb.net"
|
||||
override var mainUrl = "https://streamsb.net"
|
||||
}
|
||||
|
||||
class StreamSB9 : StreamSB() {
|
||||
override val mainUrl = "https://sbplay.one"
|
||||
override var mainUrl = "https://sbplay.one"
|
||||
}
|
||||
|
||||
// This is a modified version of https://github.com/jmir1/aniyomi-extensions/blob/master/src/en/genoanime/src/eu/kanade/tachiyomi/animeextension/en/genoanime/extractors/StreamSBExtractor.kt
|
||||
// The following code is under the Apache License 2.0 https://github.com/jmir1/aniyomi-extensions/blob/master/LICENSE
|
||||
open class StreamSB : ExtractorApi() {
|
||||
override val name = "StreamSB"
|
||||
override val mainUrl = "https://watchsb.com"
|
||||
override var name = "StreamSB"
|
||||
override var mainUrl = "https://watchsb.com"
|
||||
override val requiresReferer = false
|
||||
|
||||
private val hexArray = "0123456789ABCDEF".toCharArray()
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
|
||||
class StreamTape : ExtractorApi() {
|
||||
override val name = "StreamTape"
|
||||
override val mainUrl = "https://streamtape.com"
|
||||
override var name = "StreamTape"
|
||||
override var mainUrl = "https://streamtape.com"
|
||||
override val requiresReferer = false
|
||||
|
||||
private val linkRegex =
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.Qualities
|
|||
import java.net.URI
|
||||
|
||||
class Streamhub : ExtractorApi() {
|
||||
override val mainUrl = "https://streamhub.to"
|
||||
override val name = "Streamhub"
|
||||
override var mainUrl = "https://streamhub.to"
|
||||
override var name = "Streamhub"
|
||||
override val requiresReferer = false
|
||||
|
||||
override fun getExtractorUrl(id: String): String {
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
package com.lagradost.cloudstream3.extractors
|
||||
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import com.lagradost.cloudstream3.app
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.app
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorApi
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
|
||||
class Cinestart: Tomatomatela() {
|
||||
override val name: String = "Cinestart"
|
||||
override val mainUrl: String = "https://cinestart.net"
|
||||
override var name = "Cinestart"
|
||||
override var mainUrl = "https://cinestart.net"
|
||||
override val details = "vr.php?v="
|
||||
}
|
||||
|
||||
open class Tomatomatela : ExtractorApi() {
|
||||
override val name = "Tomatomatela"
|
||||
override val mainUrl = "https://tomatomatela.com"
|
||||
override var name = "Tomatomatela"
|
||||
override var mainUrl = "https://tomatomatela.com"
|
||||
override val requiresReferer = false
|
||||
private data class Tomato (
|
||||
@JsonProperty("status") val status: Int,
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.lagradost.cloudstream3.utils.*
|
|||
import com.lagradost.cloudstream3.app
|
||||
|
||||
class Uqload1 : Uqload() {
|
||||
override val mainUrl = "https://uqload.com"
|
||||
override var mainUrl = "https://uqload.com"
|
||||
}
|
||||
|
||||
open class Uqload : ExtractorApi() {
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.M3u8Helper
|
|||
import com.lagradost.cloudstream3.utils.getQualityFromName
|
||||
|
||||
open class WatchSB : ExtractorApi() {
|
||||
override val name = "WatchSB"
|
||||
override val mainUrl = "https://watchsb.com"
|
||||
override var name = "WatchSB"
|
||||
override var mainUrl = "https://watchsb.com"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
|
|
|
@ -8,19 +8,19 @@ import com.lagradost.cloudstream3.mapper
|
|||
import com.lagradost.cloudstream3.utils.*
|
||||
|
||||
class Vidstreamz : WcoStream() {
|
||||
override val mainUrl: String = "https://vidstreamz.online"
|
||||
override var mainUrl = "https://vidstreamz.online"
|
||||
}
|
||||
class Vizcloud : WcoStream() {
|
||||
override val mainUrl: String = "https://vizcloud2.ru"
|
||||
override var mainUrl = "https://vizcloud2.ru"
|
||||
}
|
||||
|
||||
class Vizcloud2 : WcoStream() {
|
||||
override val mainUrl: String = "https://vizcloud2.online"
|
||||
override var mainUrl = "https://vizcloud2.online"
|
||||
}
|
||||
|
||||
open class WcoStream : ExtractorApi() {
|
||||
override val name = "VidStream" //Cause works for animekisa and wco
|
||||
override val mainUrl = "https://vidstream.pro"
|
||||
override var name = "VidStream" //Cause works for animekisa and wco
|
||||
override var mainUrl = "https://vidstream.pro"
|
||||
override val requiresReferer = false
|
||||
private val hlsHelper = M3u8Helper()
|
||||
|
||||
|
|
|
@ -5,23 +5,23 @@ import com.lagradost.cloudstream3.app
|
|||
import com.lagradost.cloudstream3.utils.*
|
||||
|
||||
class Zplayer: ZplayerV2() {
|
||||
override val name: String = "Zplayer"
|
||||
override val mainUrl: String = "https://zplayer.live"
|
||||
override var name: String = "Zplayer"
|
||||
override var mainUrl: String = "https://zplayer.live"
|
||||
}
|
||||
|
||||
class Upstream: ZplayerV2() {
|
||||
override val name: String = "Upstream" //Here 'cause works
|
||||
override val mainUrl: String = "https://upstream.to"
|
||||
override var name: String = "Upstream" //Here 'cause works
|
||||
override var mainUrl: String = "https://upstream.to"
|
||||
}
|
||||
|
||||
class Streamhub2: ZplayerV2() {
|
||||
override val name: String = "Streamhub" //Here 'cause works
|
||||
override val mainUrl: String = "https://streamhub.to"
|
||||
override var name = "Streamhub" //Here 'cause works
|
||||
override var mainUrl = "https://streamhub.to"
|
||||
}
|
||||
|
||||
open class ZplayerV2 : ExtractorApi() {
|
||||
override val name = "Zplayer V2"
|
||||
override val mainUrl = "https://v2.zplayer.live"
|
||||
override var name = "Zplayer V2"
|
||||
override var mainUrl = "https://v2.zplayer.live"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
|||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
|
||||
class CrossTmdbProvider : TmdbProvider() {
|
||||
override val name = "MultiMovie"
|
||||
override var name = "MultiMovie"
|
||||
override val apiName = "MultiMovie"
|
||||
override val lang = "en"
|
||||
override val useMetaLoadResponse = true
|
||||
|
|
|
@ -9,8 +9,8 @@ import org.jsoup.nodes.Element
|
|||
|
||||
class AkwamProvider : MainAPI() {
|
||||
override val lang = "ar"
|
||||
override val mainUrl = "https://akwam.to"
|
||||
override val name = "Akwam"
|
||||
override var mainUrl = "https://akwam.to"
|
||||
override var name = "Akwam"
|
||||
override val usesWebView = false
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie, TvType.Anime, TvType.Cartoon)
|
||||
|
|
|
@ -19,8 +19,8 @@ class AllMoviesForYouProvider : MainAPI() {
|
|||
}
|
||||
|
||||
// Fetching movies will not work if this link is outdated.
|
||||
override val mainUrl = "https://allmoviesforyou.net"
|
||||
override val name = "AllMoviesForYou"
|
||||
override var mainUrl = "https://allmoviesforyou.net"
|
||||
override var name = "AllMoviesForYou"
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(
|
||||
TvType.Movie,
|
||||
|
|
|
@ -10,8 +10,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
|
||||
class ApiMDBProvider : TmdbProvider() {
|
||||
override val apiName = "ApiMDB"
|
||||
override val name = "ApiMDB"
|
||||
override val mainUrl = "https://v2.apimdb.net"
|
||||
override var name = "ApiMDB"
|
||||
override var mainUrl = "https://v2.apimdb.net"
|
||||
override val useMetaLoadResponse = true
|
||||
override val instantLinkLoading = false
|
||||
override val supportedTypes = setOf(
|
||||
|
|
|
@ -11,8 +11,8 @@ import com.lagradost.cloudstream3.utils.getQualityFromName
|
|||
import java.net.URI
|
||||
|
||||
class AsiaFlixProvider : MainAPI() {
|
||||
override val mainUrl = "https://asiaflix.app"
|
||||
override val name = "AsiaFlix"
|
||||
override var mainUrl = "https://asiaflix.app"
|
||||
override var name = "AsiaFlix"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = false
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.TvType
|
|||
* make the app know what functions to call
|
||||
*/
|
||||
class AsianLoadProvider : VidstreamProviderTemplate() {
|
||||
override val name = "AsianLoad"
|
||||
override val mainUrl = "https://asianembed.io"
|
||||
override var name = "AsianLoad"
|
||||
override var mainUrl = "https://asianembed.io"
|
||||
override val homePageUrlList = listOf(
|
||||
mainUrl,
|
||||
"$mainUrl/recently-added-raw",
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
class BflixProvider(providerUrl: String, providerName: String) : MainAPI() {
|
||||
override val mainUrl = providerUrl
|
||||
override val name = providerName
|
||||
override var mainUrl = providerUrl
|
||||
override var name = providerName
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
package com.lagradost.cloudstream3.movieproviders
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.extractors.Cinestart
|
||||
import com.lagradost.cloudstream3.mvvm.logError
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import java.util.*
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class CinecalidadProvider:MainAPI() {
|
||||
override val mainUrl: String
|
||||
get() = "https://cinecalidad.lol"
|
||||
override val name: String
|
||||
get() = "Cinecalidad"
|
||||
override var mainUrl = "https://cinecalidad.lol"
|
||||
override var name = "Cinecalidad"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -9,8 +9,8 @@ import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
|||
import java.util.*
|
||||
|
||||
class CuevanaProvider:MainAPI() {
|
||||
override val mainUrl = "https://cuevana3.me"
|
||||
override val name = "Cuevana"
|
||||
override var mainUrl = "https://cuevana3.me"
|
||||
override var name = "Cuevana"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -16,8 +16,8 @@ class DoramasYTProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
override val mainUrl = "https://doramasyt.com"
|
||||
override val name = "DoramasYT"
|
||||
override var mainUrl = "https://doramasyt.com"
|
||||
override var name = "DoramasYT"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -9,8 +9,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class DramaSeeProvider : MainAPI() {
|
||||
override val mainUrl = "https://dramasee.net"
|
||||
override val name = "DramaSee"
|
||||
override var mainUrl = "https://dramasee.net"
|
||||
override var name = "DramaSee"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = false
|
||||
|
|
|
@ -8,8 +8,8 @@ import org.jsoup.nodes.Element
|
|||
|
||||
class EgyBestProvider : MainAPI() {
|
||||
override val lang = "ar"
|
||||
override val mainUrl = "https://egy.best"
|
||||
override val name = "EgyBest"
|
||||
override var mainUrl = "https://egy.best"
|
||||
override var name = "EgyBest"
|
||||
override val usesWebView = false
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie)
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.utils.*
|
|||
import java.util.*
|
||||
|
||||
class EntrepeliculasyseriesProvider:MainAPI() {
|
||||
override val mainUrl = "https://entrepeliculasyseries.nu"
|
||||
override val name = "EntrePeliculasySeries"
|
||||
override var mainUrl = "https://entrepeliculasyseries.nu"
|
||||
override var name = "EntrePeliculasySeries"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -9,8 +9,8 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.select.Elements
|
||||
|
||||
class FilmanProvider : MainAPI() {
|
||||
override val mainUrl = "https://filman.cc"
|
||||
override val name = "filman.cc"
|
||||
override var mainUrl = "https://filman.cc"
|
||||
override var name = "filman.cc"
|
||||
override val lang = "pl"
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.utils.Qualities
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
class HDMProvider : MainAPI() {
|
||||
override val name = "HD Movies"
|
||||
override val mainUrl = "https://hdm.to"
|
||||
override var name = "HD Movies"
|
||||
override var mainUrl = "https://hdm.to"
|
||||
override val hasMainPage = true
|
||||
|
||||
override val supportedTypes = setOf(
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.jsoup.Jsoup
|
|||
import java.net.URLEncoder
|
||||
|
||||
class IHaveNoTvProvider : MainAPI() {
|
||||
override val mainUrl = "https://ihavenotv.com"
|
||||
override val name = "I Have No TV"
|
||||
override var mainUrl = "https://ihavenotv.com"
|
||||
override var name = "I Have No TV"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
class KdramaHoodProvider : MainAPI() {
|
||||
override val mainUrl = "https://kdramahood.com"
|
||||
override val name = "KDramaHood"
|
||||
override var mainUrl = "https://kdramahood.com"
|
||||
override var name = "KDramaHood"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = false
|
||||
|
|
|
@ -13,8 +13,8 @@ import org.jsoup.Jsoup
|
|||
//BE AWARE THAT weboas.is is a clone of lookmovie
|
||||
class LookMovieProvider : MainAPI() {
|
||||
override val hasQuickSearch = true
|
||||
override val name = "LookMovie"
|
||||
override val mainUrl = "https://lookmovie.io"
|
||||
override var name = "LookMovie"
|
||||
override var mainUrl = "https://lookmovie.io"
|
||||
|
||||
override val supportedTypes = setOf(
|
||||
TvType.Movie,
|
||||
|
|
|
@ -11,8 +11,8 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class MeloMovieProvider : MainAPI() {
|
||||
override val name = "MeloMovie"
|
||||
override val mainUrl = "https://melomovie.com"
|
||||
override var name = "MeloMovie"
|
||||
override var mainUrl = "https://melomovie.com"
|
||||
override val instantLinkLoading = true
|
||||
override val hasQuickSearch = true
|
||||
override val hasChromecastSupport = false // MKV FILES CANT BE PLAYED ON A CHROMECAST
|
||||
|
|
|
@ -9,8 +9,8 @@ import org.jsoup.nodes.Element
|
|||
|
||||
class MyCimaProvider : MainAPI() {
|
||||
override val lang = "ar"
|
||||
override val mainUrl = "https://mycima.tv"
|
||||
override val name = "MyCima"
|
||||
override var mainUrl = "https://mycima.tv"
|
||||
override var name = "MyCima"
|
||||
override val usesWebView = false
|
||||
override val hasMainPage = true
|
||||
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie)
|
||||
|
|
|
@ -7,8 +7,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import kotlin.collections.ArrayList
|
||||
|
||||
class PeliSmartProvider: MainAPI() {
|
||||
override val mainUrl = "https://pelismart.com"
|
||||
override val name = "PeliSmart"
|
||||
override var mainUrl = "https://pelismart.com"
|
||||
override var name = "PeliSmart"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -7,8 +7,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class PelisflixProvider : MainAPI() {
|
||||
override val mainUrl = "https://pelisflix.li"
|
||||
override val name = "Pelisflix"
|
||||
override var mainUrl = "https://pelisflix.li"
|
||||
override var name = "Pelisflix"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -6,8 +6,8 @@ import org.jsoup.nodes.Element
|
|||
import java.util.*
|
||||
|
||||
class PelisplusHDProvider:MainAPI() {
|
||||
override val mainUrl = "https://pelisplushd.net"
|
||||
override val name = "PelisplusHD"
|
||||
override var mainUrl = "https://pelisplushd.net"
|
||||
override var name = "PelisplusHD"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -7,10 +7,10 @@ import com.lagradost.cloudstream3.TvType
|
|||
*/
|
||||
class PelisplusProvider : PelisplusProviderTemplate() {
|
||||
// mainUrl is good to have as a holder for the url to make future changes easier.
|
||||
override val mainUrl = "https://pelisplus.icu"
|
||||
override var mainUrl = "https://pelisplus.icu"
|
||||
|
||||
// name is for how the provider will be named which is visible in the UI, no real rules for this.
|
||||
override val name = "Pelisplus"
|
||||
override var name = "Pelisplus"
|
||||
|
||||
override val homePageUrlList = listOf(
|
||||
mainUrl,
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class PinoyHDXyzProvider : MainAPI() {
|
||||
override val name = "Pinoy-HD"
|
||||
override val mainUrl = "https://www.pinoy-hd.xyz"
|
||||
override var name = "Pinoy-HD"
|
||||
override var mainUrl = "https://www.pinoy-hd.xyz"
|
||||
override val lang = "tl"
|
||||
override val supportedTypes = setOf(TvType.Movie, TvType.TvSeries)
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -9,8 +9,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import java.lang.Exception
|
||||
|
||||
class PinoyMoviePediaProvider : MainAPI() {
|
||||
override val name = "Pinoy Moviepedia"
|
||||
override val mainUrl = "https://pinoymoviepedia.ru"
|
||||
override var name = "Pinoy Moviepedia"
|
||||
override var mainUrl = "https://pinoymoviepedia.ru"
|
||||
override val lang = "tl"
|
||||
override val supportedTypes = setOf(TvType.Movie, TvType.TvSeries)
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -13,8 +13,8 @@ import org.jsoup.select.Elements
|
|||
import java.lang.Exception
|
||||
|
||||
class PinoyMoviesEsProvider : MainAPI() {
|
||||
override val name = "Pinoy Movies"
|
||||
override val mainUrl = "https://pinoymovies.es"
|
||||
override var name = "Pinoy Movies"
|
||||
override var mainUrl = "https://pinoymovies.es"
|
||||
override val lang = "tl"
|
||||
override val supportedTypes = setOf(TvType.Movie)
|
||||
override val hasDownloadSupport = false
|
||||
|
|
|
@ -7,8 +7,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class SeriesflixProvider : MainAPI() {
|
||||
override val mainUrl = "https://seriesflix.video"
|
||||
override val name = "Seriesflix"
|
||||
override var mainUrl = "https://seriesflix.video"
|
||||
override var name = "Seriesflix"
|
||||
override val lang = "es"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
|
|
@ -22,8 +22,8 @@ import java.net.URI
|
|||
import kotlin.system.measureTimeMillis
|
||||
|
||||
class SflixProvider(providerUrl: String, providerName: String) : MainAPI() {
|
||||
override val mainUrl = providerUrl
|
||||
override val name = providerName
|
||||
override var mainUrl = providerUrl
|
||||
override var name = providerName
|
||||
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
|||
import java.util.*
|
||||
|
||||
class SoaptwoDayProvider:MainAPI() {
|
||||
override val mainUrl = "https://secretlink.xyz" //Probably a rip off, but it has no captcha
|
||||
override val name = "Soap2Day"
|
||||
override var mainUrl = "https://secretlink.xyz" //Probably a rip off, but it has no captcha
|
||||
override var name = "Soap2Day"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
override val hasDownloadSupport = true
|
||||
|
|
|
@ -12,8 +12,8 @@ import com.lagradost.cloudstream3.utils.SubtitleHelper
|
|||
class TrailersTwoProvider : TmdbProvider() {
|
||||
val user = "cloudstream"
|
||||
override val apiName = "Trailers.to"
|
||||
override val name = "Trailers.to"
|
||||
override val mainUrl = "https://trailers.to"
|
||||
override var name = "Trailers.to"
|
||||
override var mainUrl = "https://trailers.to"
|
||||
override val useMetaLoadResponse = true
|
||||
override val instantLinkLoading = true
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
|
||||
class TwoEmbedProvider : TmdbProvider() {
|
||||
override val apiName = "2Embed"
|
||||
override val name = "2Embed"
|
||||
override val mainUrl = "https://www.2embed.ru"
|
||||
override var name = "2Embed"
|
||||
override var mainUrl = "https://www.2embed.ru"
|
||||
override val useMetaLoadResponse = true
|
||||
override val instantLinkLoading = false
|
||||
override val supportedTypes = setOf(
|
||||
|
|
|
@ -8,8 +8,8 @@ import com.lagradost.cloudstream3.utils.getQualityFromName
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
class VMoveeProvider : MainAPI() {
|
||||
override val name = "VMovee"
|
||||
override val mainUrl = "https://www.vmovee.watch"
|
||||
override var name = "VMovee"
|
||||
override var mainUrl = "https://www.vmovee.watch"
|
||||
|
||||
override val supportedTypes = setOf(TvType.Movie)
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.jsoup.Jsoup
|
|||
|
||||
// referer = https://vf-film.org, USERAGENT ALSO REQUIRED
|
||||
class VfFilmProvider : MainAPI() {
|
||||
override val mainUrl = "https://vf-film.me"
|
||||
override val name = "vf-film.me"
|
||||
override var mainUrl = "https://vf-film.me"
|
||||
override var name = "vf-film.me"
|
||||
override val lang = "fr"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = false
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.jsoup.Jsoup
|
|||
|
||||
// referer = https://vf-serie.org, USERAGENT ALSO REQUIRED
|
||||
class VfSerieProvider : MainAPI() {
|
||||
override val mainUrl = "https://vf-serie.org"
|
||||
override val name = "vf-serie.org"
|
||||
override var mainUrl = "https://vf-serie.org"
|
||||
override var name = "vf-serie.org"
|
||||
override val lang = "fr"
|
||||
|
||||
override val hasQuickSearch = false
|
||||
|
|
|
@ -7,10 +7,10 @@ import com.lagradost.cloudstream3.TvType
|
|||
*/
|
||||
class VidEmbedProvider : VidstreamProviderTemplate() {
|
||||
// mainUrl is good to have as a holder for the url to make future changes easier.
|
||||
override val mainUrl = "https://vidembed.cc"
|
||||
override var mainUrl = "https://vidembed.cc"
|
||||
|
||||
// name is for how the provider will be named which is visible in the UI, no real rules for this.
|
||||
override val name = "VidEmbed"
|
||||
override var name = "VidEmbed"
|
||||
|
||||
override val homePageUrlList: List<String> = listOf(
|
||||
mainUrl,
|
||||
|
|
|
@ -9,8 +9,8 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class WatchAsianProvider : MainAPI() {
|
||||
override val mainUrl = "https://watchasian.sh"
|
||||
override val name = "WatchAsian"
|
||||
override var mainUrl = "https://watchasian.sh"
|
||||
override var name = "WatchAsian"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = false
|
||||
|
|
|
@ -6,8 +6,8 @@ import com.lagradost.cloudstream3.utils.extractorApis
|
|||
|
||||
|
||||
class FrenchStreamProvider : MainAPI() {
|
||||
override val mainUrl = "https://french-stream.re"
|
||||
override val name = "French Stream"
|
||||
override var mainUrl = "https://french-stream.re"
|
||||
override var name = "French Stream"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
override val lang = "fr"
|
||||
|
|
|
@ -26,11 +26,11 @@ import java.net.URL
|
|||
import java.util.*
|
||||
|
||||
class AniListApi(index: Int) : AccountManager(index), SyncAPI {
|
||||
override val name = "AniList"
|
||||
override var name = "AniList"
|
||||
override val key = "6871"
|
||||
override val redirectUrl = "anilistlogin"
|
||||
override val idPrefix = "anilist"
|
||||
override val mainUrl = "https://anilist.co"
|
||||
override var mainUrl = "https://anilist.co"
|
||||
override val icon = R.drawable.ic_anilist_icon
|
||||
|
||||
override fun loginInfo(): OAuth2API.LoginInfo? {
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.lagradost.cloudstream3.syncproviders.OAuth2API
|
|||
//TODO dropbox sync
|
||||
class Dropbox : OAuth2API {
|
||||
override val idPrefix = "dropbox"
|
||||
override val name = "Dropbox"
|
||||
override var name = "Dropbox"
|
||||
override val key = "zlqsamadlwydvb2"
|
||||
override val redirectUrl = "dropboxlogin"
|
||||
|
||||
|
|
|
@ -31,11 +31,11 @@ import java.util.*
|
|||
const val MAL_MAX_SEARCH_LIMIT = 25
|
||||
|
||||
class MALApi(index: Int) : AccountManager(index), SyncAPI {
|
||||
override val name = "MAL"
|
||||
override var name = "MAL"
|
||||
override val key = "1714d6f2f4f7cc19644384f8c4629910"
|
||||
override val redirectUrl = "mallogin"
|
||||
override val idPrefix = "mal"
|
||||
override val mainUrl = "https://myanimelist.net"
|
||||
override var mainUrl = "https://myanimelist.net"
|
||||
override val icon = R.drawable.mal_logo
|
||||
|
||||
override fun logOut() {
|
||||
|
|
|
@ -6,10 +6,10 @@ import com.lagradost.cloudstream3.utils.Qualities
|
|||
import org.jsoup.Jsoup
|
||||
|
||||
class NyaaProvider : MainAPI() {
|
||||
override val name = "Nyaa"
|
||||
override var name = "Nyaa"
|
||||
override val hasChromecastSupport = false
|
||||
|
||||
override val mainUrl = "https://nyaa.si"
|
||||
override var mainUrl = "https://nyaa.si"
|
||||
override val supportedTypes = setOf(TvType.Torrent)
|
||||
override val vpnStatus = VPNStatus.Torrent
|
||||
override val instantLinkLoading = true
|
||||
|
|
|
@ -11,11 +11,11 @@ class APIRepository(val api: MainAPI) {
|
|||
var dubStatusActive = HashSet<DubStatus>()
|
||||
|
||||
val noneApi = object : MainAPI() {
|
||||
override val name = "None"
|
||||
override var name = "None"
|
||||
override val supportedTypes = emptySet<TvType>()
|
||||
}
|
||||
val randomApi = object : MainAPI() {
|
||||
override val name = "Random"
|
||||
override var name = "Random"
|
||||
override val supportedTypes = emptySet<TvType>()
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import com.hippo.unifile.UniFile
|
|||
import com.lagradost.cloudstream3.APIHolder.apis
|
||||
import com.lagradost.cloudstream3.APIHolder.getApiDubstatusSettings
|
||||
import com.lagradost.cloudstream3.APIHolder.getApiProviderLangSettings
|
||||
import com.lagradost.cloudstream3.APIHolder.restrictedApis
|
||||
import com.lagradost.cloudstream3.AcraApplication
|
||||
import com.lagradost.cloudstream3.AcraApplication.Companion.removeKey
|
||||
import com.lagradost.cloudstream3.CommonActivity.setLocale
|
||||
|
@ -301,9 +300,6 @@ class SettingsFragment : PreferenceFragmentCompat() {
|
|||
for (api in apis) {
|
||||
allLangs.add(api.lang)
|
||||
}
|
||||
for (api in restrictedApis) {
|
||||
allLangs.add(api.lang)
|
||||
}
|
||||
|
||||
val currentList = ArrayList<Int>()
|
||||
for (i in current) {
|
||||
|
|
Loading…
Reference in a new issue