mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
added Nekopoi and fix some providers
This commit is contained in:
parent
4127d8f2c8
commit
4a1597dc2f
10 changed files with 331 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 14
|
||||
version = 15
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
|
|||
import java.net.URI
|
||||
|
||||
class YomoviesProvider : MainAPI() {
|
||||
override var mainUrl = "https://yomovies.team"
|
||||
override var mainUrl = "https://yomovies.baby"
|
||||
private var directUrl = mainUrl
|
||||
override var name = "Yomovies"
|
||||
override val hasMainPage = true
|
||||
|
@ -142,7 +142,7 @@ class YomoviesProvider : MainAPI() {
|
|||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
|
||||
if (data.contains("yomovies")) {
|
||||
if (data.contains(directUrl.getHost(), true)) {
|
||||
val doc = app.get(data).document
|
||||
doc.select("div.movieplay iframe").map { fixUrl(it.attr("src")) }
|
||||
.apmap { source ->
|
||||
|
@ -171,5 +171,8 @@ class YomoviesProvider : MainAPI() {
|
|||
return true
|
||||
}
|
||||
|
||||
private fun String.getHost(): String {
|
||||
return fixTitle(URI(this).host.substringBeforeLast(".").substringAfterLast("."))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue