mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
61f728cad1
9 changed files with 160 additions and 4 deletions
24
FilmPalast/build.gradle.kts
Normal file
24
FilmPalast/build.gradle.kts
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
// use an integer for version numbers
|
||||||
|
version = 1
|
||||||
|
|
||||||
|
|
||||||
|
cloudstream {
|
||||||
|
// All of these properties are optional, you can safely remove them
|
||||||
|
|
||||||
|
description = "German Filmpalast provider"
|
||||||
|
authors = listOf("Bnyro")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Status int as the following:
|
||||||
|
* 0: Down
|
||||||
|
* 1: Ok
|
||||||
|
* 2: Slow
|
||||||
|
* 3: Beta only
|
||||||
|
* */
|
||||||
|
status = 1 // will be 3 if unspecified
|
||||||
|
|
||||||
|
// List of video source types. Users are able to filter for extensions in a given category.
|
||||||
|
// You can find a list of avaliable types here:
|
||||||
|
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
||||||
|
tvTypes = listOf("TvSeries", "Movie")
|
||||||
|
}
|
2
FilmPalast/src/main/AndroidManifest.xml
Normal file
2
FilmPalast/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest package="com.example"/>
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.example
|
||||||
|
|
||||||
|
import com.lagradost.cloudstream3.extractors.Filesim
|
||||||
|
import com.lagradost.cloudstream3.extractors.StreamTape
|
||||||
|
import com.lagradost.cloudstream3.extractors.Streamhub
|
||||||
|
import com.lagradost.cloudstream3.extractors.Voe
|
||||||
|
|
||||||
|
class StreamTapeTo : StreamTape() {
|
||||||
|
override var mainUrl = "https://streamtape.com"
|
||||||
|
}
|
||||||
|
|
||||||
|
class StreamHubGg : Streamhub() {
|
||||||
|
override var name = "Streamhub Gg"
|
||||||
|
override var mainUrl = "https://streamhub.gg"
|
||||||
|
}
|
||||||
|
|
||||||
|
class VoeSx: Voe() {
|
||||||
|
override val name = "Voe Sx"
|
||||||
|
override val mainUrl = "https://voe.sx"
|
||||||
|
}
|
||||||
|
|
||||||
|
class MetaGnathTuggers : Voe() {
|
||||||
|
override val name = "Metagnathtuggers"
|
||||||
|
override val mainUrl = "https://metagnathtuggers.com"
|
||||||
|
}
|
||||||
|
|
||||||
|
class FileLions : Filesim() {
|
||||||
|
override val name = "Filelions"
|
||||||
|
override var mainUrl = "https://filelions.to"
|
||||||
|
}
|
18
FilmPalast/src/main/kotlin/com/example/FilmpalastPlugin.kt
Normal file
18
FilmPalast/src/main/kotlin/com/example/FilmpalastPlugin.kt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package com.example
|
||||||
|
|
||||||
|
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
||||||
|
import com.lagradost.cloudstream3.plugins.Plugin
|
||||||
|
import android.content.Context
|
||||||
|
|
||||||
|
@CloudstreamPlugin
|
||||||
|
class FilmpalastPlugin: Plugin() {
|
||||||
|
override fun load(context: Context) {
|
||||||
|
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||||
|
registerMainAPI(FilmpalastProvider())
|
||||||
|
registerExtractorAPI(StreamTapeTo())
|
||||||
|
registerExtractorAPI(StreamHubGg())
|
||||||
|
registerExtractorAPI(VoeSx())
|
||||||
|
registerExtractorAPI(MetaGnathTuggers())
|
||||||
|
registerExtractorAPI(FileLions())
|
||||||
|
}
|
||||||
|
}
|
82
FilmPalast/src/main/kotlin/com/example/FilmpalastProvider.kt
Normal file
82
FilmPalast/src/main/kotlin/com/example/FilmpalastProvider.kt
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
package com.example
|
||||||
|
|
||||||
|
import com.lagradost.cloudstream3.*
|
||||||
|
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
||||||
|
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||||
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
|
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
|
import org.jsoup.select.Elements
|
||||||
|
|
||||||
|
class FilmpalastProvider : MainAPI() {
|
||||||
|
override var mainUrl = "https://filmpalast.to"
|
||||||
|
override var name = "Filmpalast"
|
||||||
|
override val supportedTypes = setOf(TvType.Movie, TvType.TvSeries)
|
||||||
|
|
||||||
|
override var lang = "de"
|
||||||
|
override val hasMainPage = true
|
||||||
|
|
||||||
|
private fun Element.toSearchResponse(): SearchResponse {
|
||||||
|
val title = select("cite a.rb").text()
|
||||||
|
val url = select("a.rb").attr("href")
|
||||||
|
val posterPath = select("img.cover-opacity").attr("src")
|
||||||
|
return newMovieSearchResponse(title, type = TvType.Movie, url = url).apply {
|
||||||
|
this.posterUrl = "$mainUrl$posterPath"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||||
|
val movies = app.get("$mainUrl/movies/top").document
|
||||||
|
val movieResults = movies.select("#content .liste.rb").mapNotNull {
|
||||||
|
it.toSearchResponse()
|
||||||
|
}
|
||||||
|
val series = app.get("$mainUrl/serien/view").document
|
||||||
|
val seriesResults = series.select("#content .liste.rb").mapNotNull {
|
||||||
|
it.toSearchResponse()
|
||||||
|
}
|
||||||
|
val homePageLists = listOf(HomePageList("Movies", movieResults), HomePageList("Series", seriesResults))
|
||||||
|
return newHomePageResponse(homePageLists, hasNext = false)
|
||||||
|
}
|
||||||
|
|
||||||
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
|
val document = app.get("$mainUrl/search/title/$query").document
|
||||||
|
return document.select("#content .glowliste").mapNotNull {
|
||||||
|
it.toSearchResponse()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override suspend fun load(url: String): LoadResponse {
|
||||||
|
val document = app.get(url).document.select("#content")
|
||||||
|
|
||||||
|
val title = document.select("h2.rb.bgDark").text()
|
||||||
|
val imagePath = document.select(".detail.rb img.cover2").attr("src")
|
||||||
|
val description = document.select("span[itemprop=description]").text()
|
||||||
|
val details = document.select("detail-content-list li")
|
||||||
|
val year = details.first()?.html()?.split("<br>")?.getOrNull(1)?.filter { it.isDigit() }?.toIntOrNull()
|
||||||
|
val duration = details.select("em").first()?.ownText()?.filter { it.isDigit() }?.toIntOrNull()
|
||||||
|
|
||||||
|
val links = document.select(".currentStreamLinks a.iconPlay").mapNotNull {
|
||||||
|
it.attr("href") ?: it.attr("data-player-url")
|
||||||
|
}
|
||||||
|
return newMovieLoadResponse(title, url, TvType.Movie, links.toJson()).apply {
|
||||||
|
this.posterUrl = "$mainUrl$imagePath"
|
||||||
|
this.plot = description
|
||||||
|
this.duration = duration
|
||||||
|
this.year = year
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override suspend fun loadLinks(
|
||||||
|
data: String,
|
||||||
|
isCasting: Boolean,
|
||||||
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
|
callback: (ExtractorLink) -> Unit
|
||||||
|
): Boolean {
|
||||||
|
val links = parseJson<List<String>>(data)
|
||||||
|
links.apmap {
|
||||||
|
val link = fixUrlNull(it) ?: return@apmap null
|
||||||
|
loadExtractor(link, "$mainUrl/", subtitleCallback, callback)
|
||||||
|
}
|
||||||
|
return links.isNotEmpty()
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 13
|
version = 14
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import org.jsoup.Jsoup
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class KuramanimeProvider : MainAPI() {
|
class KuramanimeProvider : MainAPI() {
|
||||||
override var mainUrl = "https://kuramanime.xyz"
|
override var mainUrl = "https://kuramanime.pro"
|
||||||
override var name = "Kuramanime"
|
override var name = "Kuramanime"
|
||||||
override val hasQuickSearch = false
|
override val hasQuickSearch = false
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
|
|
|
@ -9,7 +9,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.net.URLDecoder
|
import java.net.URLDecoder
|
||||||
|
|
||||||
class PhimmoichillProvider : MainAPI() {
|
class PhimmoichillProvider : MainAPI() {
|
||||||
override var mainUrl = "https://phimmoichilld.net"
|
override var mainUrl = "https://phimmoichillg.net"
|
||||||
override var name = "Phimmoichill"
|
override var name = "Phimmoichill"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "vi"
|
override var lang = "vi"
|
||||||
|
|
|
@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
open class YomoviesProvider : MainAPI() {
|
open class YomoviesProvider : MainAPI() {
|
||||||
override var mainUrl = "https://yomovies.ltd"
|
override var mainUrl = "https://yomovies.fan"
|
||||||
private var directUrl = ""
|
private var directUrl = ""
|
||||||
override var name = "Yomovies"
|
override var name = "Yomovies"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
|
|
Loading…
Reference in a new issue