forked from recloudstream/cloudstream
2embed fixes (#1302)
* Update TwoEmbedProvider.kt * Update providers.json * Update providers.json
This commit is contained in:
parent
9c387ff4d8
commit
57e5d33ac4
3 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
class TwoEmbedProvider : TmdbProvider() {
|
class TwoEmbedProvider : TmdbProvider() {
|
||||||
override val apiName = "2Embed"
|
override val apiName = "2Embed"
|
||||||
override var name = "2Embed"
|
override var name = "2Embed"
|
||||||
override var mainUrl = "https://www.2embed.org"
|
override var mainUrl = "https://2embed.org"
|
||||||
override val useMetaLoadResponse = true
|
override val useMetaLoadResponse = true
|
||||||
override val instantLinkLoading = false
|
override val instantLinkLoading = false
|
||||||
override val supportedTypes = setOf(
|
override val supportedTypes = setOf(
|
||||||
|
@ -46,10 +46,10 @@ class TwoEmbedProvider : TmdbProvider() {
|
||||||
) else listOf(mappedData.tmdbID.toString(), "tmdb")
|
) else listOf(mappedData.tmdbID.toString(), "tmdb")
|
||||||
val isMovie = mappedData.episode == null && mappedData.season == null
|
val isMovie = mappedData.episode == null && mappedData.season == null
|
||||||
val embedUrl = if (isMovie) {
|
val embedUrl = if (isMovie) {
|
||||||
"$mainUrl/embed/$site/movie?id=$id"
|
"$mainUrl/embed/movie?$site=$id"
|
||||||
} else {
|
} else {
|
||||||
val suffix = "$id&s=${mappedData.season ?: 1}&e=${mappedData.episode ?: 1}"
|
val suffix = "$id&sea=${mappedData.season ?: 1}&epi=${mappedData.episode ?: 1}"
|
||||||
"$mainUrl/embed/$site/tv?id=$suffix"
|
"$mainUrl/embed/series?$site=$suffix"
|
||||||
}
|
}
|
||||||
|
|
||||||
val document = app.get(embedUrl).document
|
val document = app.get(embedUrl).document
|
||||||
|
|
|
@ -497,7 +497,7 @@
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"name": "2Embed",
|
"name": "2Embed",
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"url": "https://www.2embed.org"
|
"url": "https://2embed.org"
|
||||||
},
|
},
|
||||||
"UakinoProvider": {
|
"UakinoProvider": {
|
||||||
"language": "uk",
|
"language": "uk",
|
||||||
|
|
|
@ -241,8 +241,8 @@
|
||||||
},
|
},
|
||||||
"TwoEmbedProvider": {
|
"TwoEmbedProvider": {
|
||||||
"name": "2Embed",
|
"name": "2Embed",
|
||||||
"url": "https://www.2embed.ru",
|
"url": "https://2embed.org",
|
||||||
"status": 0
|
"status": 1
|
||||||
},
|
},
|
||||||
"VMoveeProvider": {
|
"VMoveeProvider": {
|
||||||
"name": "VMovee",
|
"name": "VMovee",
|
||||||
|
|
Loading…
Reference in a new issue