mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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() {
|
||||
override val apiName = "2Embed"
|
||||
override var name = "2Embed"
|
||||
override var mainUrl = "https://www.2embed.org"
|
||||
override var mainUrl = "https://2embed.org"
|
||||
override val useMetaLoadResponse = true
|
||||
override val instantLinkLoading = false
|
||||
override val supportedTypes = setOf(
|
||||
|
@ -46,10 +46,10 @@ class TwoEmbedProvider : TmdbProvider() {
|
|||
) else listOf(mappedData.tmdbID.toString(), "tmdb")
|
||||
val isMovie = mappedData.episode == null && mappedData.season == null
|
||||
val embedUrl = if (isMovie) {
|
||||
"$mainUrl/embed/$site/movie?id=$id"
|
||||
"$mainUrl/embed/movie?$site=$id"
|
||||
} else {
|
||||
val suffix = "$id&s=${mappedData.season ?: 1}&e=${mappedData.episode ?: 1}"
|
||||
"$mainUrl/embed/$site/tv?id=$suffix"
|
||||
val suffix = "$id&sea=${mappedData.season ?: 1}&epi=${mappedData.episode ?: 1}"
|
||||
"$mainUrl/embed/series?$site=$suffix"
|
||||
}
|
||||
|
||||
val document = app.get(embedUrl).document
|
||||
|
|
|
@ -497,7 +497,7 @@
|
|||
"language": "en",
|
||||
"name": "2Embed",
|
||||
"status": 1,
|
||||
"url": "https://www.2embed.org"
|
||||
"url": "https://2embed.org"
|
||||
},
|
||||
"UakinoProvider": {
|
||||
"language": "uk",
|
||||
|
@ -559,4 +559,4 @@
|
|||
"status": 1,
|
||||
"url": "https://zoro.to"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -241,8 +241,8 @@
|
|||
},
|
||||
"TwoEmbedProvider": {
|
||||
"name": "2Embed",
|
||||
"url": "https://www.2embed.ru",
|
||||
"status": 0
|
||||
"url": "https://2embed.org",
|
||||
"status": 1
|
||||
},
|
||||
"VMoveeProvider": {
|
||||
"name": "VMovee",
|
||||
|
|
Loading…
Reference in a new issue