mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
added Anizm & Hdfilmcehennemi (Turkish) (#17)
* added Anizm & Hdfilmcehennemi * changes Dramaid domain
This commit is contained in:
parent
b0905c3c68
commit
0bfba1ba5d
16 changed files with 500 additions and 15 deletions
27
Anizm/build.gradle.kts
Normal file
27
Anizm/build.gradle.kts
Normal file
|
@ -0,0 +1,27 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
|
||||
|
||||
cloudstream {
|
||||
language = "tr"
|
||||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
* 0: Down
|
||||
* 1: Ok
|
||||
* 2: Slow
|
||||
* 3: Beta only
|
||||
* */
|
||||
status = 1 // will be 3 if unspecified
|
||||
tvTypes = listOf(
|
||||
"AnimeMovie",
|
||||
"Anime",
|
||||
"OVA",
|
||||
)
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=anizm.net&sz=%size%"
|
||||
}
|
2
Anizm/src/main/AndroidManifest.xml
Normal file
2
Anizm/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="com.lagradost"/>
|
195
Anizm/src/main/kotlin/com/lagradost/Anizm.kt
Normal file
195
Anizm/src/main/kotlin/com/lagradost/Anizm.kt
Normal file
|
@ -0,0 +1,195 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
|
||||
class Anizm : MainAPI() {
|
||||
override var mainUrl = "https://anizm.net"
|
||||
override var name = "Anizm"
|
||||
override val hasMainPage = true
|
||||
override var lang = "tr"
|
||||
override val hasDownloadSupport = true
|
||||
|
||||
override val supportedTypes = setOf(
|
||||
TvType.Anime,
|
||||
TvType.AnimeMovie,
|
||||
TvType.OVA
|
||||
)
|
||||
|
||||
companion object {
|
||||
private const val mainServer = "https://anizmplayer.com"
|
||||
}
|
||||
|
||||
override val mainPage = mainPageOf(
|
||||
"$mainUrl/anime-izle?sayfa=" to "Son Eklenen Animeler",
|
||||
)
|
||||
|
||||
override suspend fun getMainPage(
|
||||
page: Int,
|
||||
request: MainPageRequest
|
||||
): HomePageResponse {
|
||||
val document = app.get(request.data + page).document
|
||||
val home = document.select("div.restrictedWidth div#episodesMiddle").mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
return newHomePageResponse(request.name, home)
|
||||
}
|
||||
|
||||
private fun getProperAnimeLink(uri: String): String {
|
||||
return if (uri.contains("-bolum")) {
|
||||
"$mainUrl/${uri.substringAfter("$mainUrl/").replace(Regex("-[0-9]+-bolum.*"), "")}"
|
||||
} else {
|
||||
uri
|
||||
}
|
||||
}
|
||||
|
||||
private fun Element.toSearchResult(): AnimeSearchResponse? {
|
||||
val href = getProperAnimeLink(this.selectFirst("a")!!.attr("href"))
|
||||
val title = this.selectFirst("div.title, h5.animeTitle a")?.text() ?: return null
|
||||
val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("src"))
|
||||
val episode = this.selectFirst("div.truncateText")?.text()?.let {
|
||||
Regex("([0-9]+).\\s?Bölüm").find(it)?.groupValues?.getOrNull(1)?.toIntOrNull()
|
||||
}
|
||||
|
||||
return newAnimeSearchResponse(title, href, TvType.Anime) {
|
||||
this.posterUrl = posterUrl
|
||||
addSub(episode)
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
val document = app.get(
|
||||
"$mainUrl/fullViewSearch?search=$query&skip=0",
|
||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
||||
).document
|
||||
|
||||
return document.select("div.searchResultItem").mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun load(url: String): LoadResponse {
|
||||
val document = app.get(url).document
|
||||
|
||||
val title = document.selectFirst("h2.anizm_pageTitle a")!!.text().trim()
|
||||
val type =
|
||||
if (document.select("div.ui.grid div.four.wide").size == 1) TvType.Movie else TvType.Anime
|
||||
val trailer = document.select("div.yt-hd-thumbnail-inner-container iframe").attr("src")
|
||||
val episodes = document.select("div.ui.grid div.four.wide").map {
|
||||
val name = it.select("div.episodeBlock").text()
|
||||
val link = fixUrl(it.selectFirst("a")?.attr("href").toString())
|
||||
Episode(link, name)
|
||||
}
|
||||
return newAnimeLoadResponse(title, url, type) {
|
||||
posterUrl = fixUrlNull(document.selectFirst("div.infoPosterImg > img")?.attr("src"))
|
||||
this.year = document.select("div.infoSta ul li:first-child").text().trim().toIntOrNull()
|
||||
addEpisodes(DubStatus.Subbed, episodes)
|
||||
plot = document.select("div.infoDesc").text().trim()
|
||||
this.tags = document.select("span.dataValue span.ui.label").map { it.text() }
|
||||
addTrailer(trailer)
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun invokeLokalSource(
|
||||
url: String,
|
||||
translator: String,
|
||||
sourceCallback: (ExtractorLink) -> Unit
|
||||
) {
|
||||
app.get(url, referer = "$mainUrl/").document.select("script").find { script ->
|
||||
script.data().contains("eval(function(p,a,c,k,e,d)")
|
||||
}?.let {
|
||||
val key = getAndUnpack(it.data()).substringAfter("FirePlayer(\"").substringBefore("\",")
|
||||
val referer = "$mainServer/video/$key"
|
||||
val link = "$mainServer/player/index.php?data=$key&do=getVideo"
|
||||
Log.i("hexated", link)
|
||||
app.post(
|
||||
link,
|
||||
data = mapOf("hash" to key, "r" to "$mainUrl/"),
|
||||
referer = referer,
|
||||
headers = mapOf(
|
||||
"Accept" to "*/*",
|
||||
"Origin" to mainServer,
|
||||
"Content-Type" to "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
"X-Requested-With" to "XMLHttpRequest"
|
||||
)
|
||||
).parsedSafe<Source>()?.videoSource?.let { m3uLink ->
|
||||
M3u8Helper.generateM3u8(
|
||||
"${this.name} ($translator)",
|
||||
m3uLink,
|
||||
referer
|
||||
).forEach(sourceCallback)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun loadLinks(
|
||||
data: String,
|
||||
isCasting: Boolean,
|
||||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
val document = app.get(data).document
|
||||
document.select("div.episodeTranslators div#fansec").map {
|
||||
Pair(it.select("a").attr("translator"), it.select("div.title").text())
|
||||
}.apmap { (url, translator) ->
|
||||
safeApiCall {
|
||||
app.get(
|
||||
url,
|
||||
referer = data,
|
||||
headers = mapOf(
|
||||
"Accept" to "application/json, text/javascript, */*; q=0.01",
|
||||
"X-Requested-With" to "XMLHttpRequest"
|
||||
)
|
||||
).parsedSafe<Translators>()?.data?.let {
|
||||
Jsoup.parse(it).select("a").apmap { video ->
|
||||
app.get(
|
||||
video.attr("video"),
|
||||
referer = data,
|
||||
headers = mapOf(
|
||||
"Accept" to "application/json, text/javascript, */*; q=0.01",
|
||||
"X-Requested-With" to "XMLHttpRequest"
|
||||
)
|
||||
).parsedSafe<Videos>()?.player?.let { iframe ->
|
||||
Jsoup.parse(iframe).select("iframe").attr("src").let { link ->
|
||||
when {
|
||||
link.startsWith(mainServer) -> {
|
||||
invokeLokalSource(link, translator, callback)
|
||||
}
|
||||
else -> {
|
||||
loadExtractor(
|
||||
fixUrl(link),
|
||||
"$mainUrl/",
|
||||
subtitleCallback,
|
||||
callback
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
data class Source(
|
||||
@JsonProperty("videoSource") val videoSource: String?,
|
||||
)
|
||||
|
||||
data class Videos(
|
||||
@JsonProperty("player") val player: String?,
|
||||
)
|
||||
|
||||
data class Translators(
|
||||
@JsonProperty("data") val data: String?,
|
||||
)
|
||||
|
||||
}
|
14
Anizm/src/main/kotlin/com/lagradost/AnizmPlugin.kt
Normal file
14
Anizm/src/main/kotlin/com/lagradost/AnizmPlugin.kt
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
package com.lagradost
|
||||
|
||||
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
||||
import com.lagradost.cloudstream3.plugins.Plugin
|
||||
import android.content.Context
|
||||
|
||||
@CloudstreamPlugin
|
||||
class AnizmPlugin: Plugin() {
|
||||
override fun load(context: Context) {
|
||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||
registerMainAPI(Anizm())
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -7,7 +7,7 @@ cloudstream {
|
|||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
// authors = listOf("Cloudburst")
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
|
@ -22,5 +22,5 @@ cloudstream {
|
|||
"Movie",
|
||||
)
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=185.224.83.103&sz=%size%"
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=dramaid.asia&sz=%size%"
|
||||
}
|
|
@ -10,7 +10,7 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class DramaidProvider : MainAPI() {
|
||||
override var mainUrl = "https://185.224.83.103"
|
||||
override var mainUrl = "https://dramaid.asia"
|
||||
override var name = "DramaId"
|
||||
override val hasQuickSearch = false
|
||||
override val hasMainPage = true
|
||||
|
|
26
Hdfilmcehennemi/build.gradle.kts
Normal file
26
Hdfilmcehennemi/build.gradle.kts
Normal file
|
@ -0,0 +1,26 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
|
||||
|
||||
cloudstream {
|
||||
language = "tr"
|
||||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
* 0: Down
|
||||
* 1: Ok
|
||||
* 2: Slow
|
||||
* 3: Beta only
|
||||
* */
|
||||
status = 1 // will be 3 if unspecified
|
||||
tvTypes = listOf(
|
||||
"TvSeries",
|
||||
"Movie",
|
||||
)
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=hdfilmcehennemi.live&sz=%size%"
|
||||
}
|
2
Hdfilmcehennemi/src/main/AndroidManifest.xml
Normal file
2
Hdfilmcehennemi/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="com.lagradost"/>
|
205
Hdfilmcehennemi/src/main/kotlin/com/lagradost/Hdfilmcehennemi.kt
Normal file
205
Hdfilmcehennemi/src/main/kotlin/com/lagradost/Hdfilmcehennemi.kt
Normal file
|
@ -0,0 +1,205 @@
|
|||
package com.lagradost
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class Hdfilmcehennemi : MainAPI() {
|
||||
override var mainUrl = "https://www.hdfilmcehennemi.live"
|
||||
override var name = "hdfilmcehennemi"
|
||||
override val hasMainPage = true
|
||||
override var lang = "tr"
|
||||
override val hasQuickSearch = true
|
||||
override val hasDownloadSupport = true
|
||||
override val supportedTypes = setOf(
|
||||
TvType.Movie,
|
||||
TvType.TvSeries,
|
||||
)
|
||||
|
||||
override val mainPage = mainPageOf(
|
||||
"$mainUrl/category/tavsiye-filmler-izle1/page/" to "Tavsiye Filmler Kategorisi",
|
||||
"$mainUrl/yabancidizi/page/" to "Son Eklenen Yabancı Diziler",
|
||||
"$mainUrl/imdb-7-puan-uzeri-filmler/page/" to "Imdb 7+ Filmler",
|
||||
"$mainUrl/en-cok-yorumlananlar/page/" to "En Çok Yorumlananlar",
|
||||
"$mainUrl/en-cok-begenilen-filmleri-izle/page/" to "En Çok Beğenilenler",
|
||||
)
|
||||
|
||||
override suspend fun getMainPage(
|
||||
page: Int,
|
||||
request: MainPageRequest
|
||||
): HomePageResponse {
|
||||
val document = app.get(request.data + page).document
|
||||
val home = document.select("div.card-body div.row div.col-6.col-sm-3.poster-container")
|
||||
.mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
return newHomePageResponse(request.name, home)
|
||||
}
|
||||
|
||||
private fun Element.toSearchResult(): SearchResponse? {
|
||||
val title = this.selectFirst("a")?.text() ?: return null
|
||||
val href = fixUrlNull(this.selectFirst("a")?.attr("href")) ?: return null
|
||||
val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("data-src"))
|
||||
return newMovieSearchResponse(title, href, TvType.Movie) {
|
||||
this.posterUrl = posterUrl
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun Media.toSearchResponse(): SearchResponse? {
|
||||
return newMovieSearchResponse(
|
||||
title ?: return null,
|
||||
"$mainUrl/$slugPrefix$slug",
|
||||
TvType.TvSeries,
|
||||
) {
|
||||
this.posterUrl = "$mainUrl/uploads/poster/$poster"
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun quickSearch(query: String): List<SearchResponse> = search(query)
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
return app.post(
|
||||
"$mainUrl/search/",
|
||||
data = mapOf("query" to query),
|
||||
referer = "$mainUrl/",
|
||||
headers = mapOf(
|
||||
"Accept" to "application/json, text/javascript, */*; q=0.01",
|
||||
"X-Requested-With" to "XMLHttpRequest"
|
||||
)
|
||||
).parsedSafe<Result>()?.result?.mapNotNull { media ->
|
||||
media.toSearchResponse()
|
||||
} ?: throw ErrorLoadingException("Invalid Json reponse")
|
||||
}
|
||||
|
||||
override suspend fun load(url: String): LoadResponse? {
|
||||
val document = app.get(url).document
|
||||
|
||||
val title = document.selectFirst("div.card-header > h1, div.card-header > h2")?.text()
|
||||
?: return null
|
||||
val poster = fixUrlNull(document.selectFirst("img.img-fluid")?.attr("src"))
|
||||
val tags = document.select("div.mb-0.lh-lg div:nth-child(5) a").map { it.text() }
|
||||
val year =
|
||||
document.selectFirst("div.mb-0.lh-lg div:nth-child(4) a")?.text()?.trim()?.toIntOrNull()
|
||||
val tvType = if (document.select("nav#seasonsTabs").isNullOrEmpty()
|
||||
) TvType.Movie else TvType.TvSeries
|
||||
val description = document.selectFirst("article.text-white > p")?.text()?.trim()
|
||||
val rating = document.selectFirst("div.rating-votes div.rate span")?.text()?.toRatingInt()
|
||||
val actors = document.select("div.mb-0.lh-lg div:last-child a.chip").map {
|
||||
Actor(it.text(), it.select("img").attr("src"))
|
||||
}
|
||||
val recommendations =
|
||||
document.select("div.swiper-wrapper div.poster.poster-pop").mapNotNull {
|
||||
val recName = it.selectFirst("h2.title")?.text() ?: return@mapNotNull null
|
||||
val recHref =
|
||||
fixUrlNull(it.selectFirst("a")?.attr("href")) ?: return@mapNotNull null
|
||||
val recPosterUrl = fixUrlNull(it.selectFirst("img")?.attr("data-src"))
|
||||
newTvSeriesSearchResponse(recName, recHref, TvType.TvSeries) {
|
||||
this.posterUrl = recPosterUrl
|
||||
}
|
||||
}
|
||||
|
||||
return if (tvType == TvType.TvSeries) {
|
||||
val trailer =
|
||||
document.selectFirst("button.btn.btn-fragman.btn-danger")?.attr("data-trailer")
|
||||
?.let {
|
||||
"https://www.youtube.com/embed/$it"
|
||||
}
|
||||
val episodes = document.select("div#seasonsTabs-tabContent div.card-list-item").map {
|
||||
val href = it.select("a").attr("href")
|
||||
val name = it.select("h3").text().trim()
|
||||
val episode = it.select("h3").text().let { num ->
|
||||
Regex("Sezon\\s?([0-9]+).").find(num)?.groupValues?.getOrNull(1)?.toIntOrNull()
|
||||
}
|
||||
val season = it.parents()[1].attr("id").substringAfter("-").toIntOrNull()
|
||||
Episode(
|
||||
href,
|
||||
name,
|
||||
season,
|
||||
episode,
|
||||
)
|
||||
}
|
||||
newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) {
|
||||
this.posterUrl = poster
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
this.rating = rating
|
||||
addActors(actors)
|
||||
this.recommendations = recommendations
|
||||
addTrailer(trailer)
|
||||
}
|
||||
} else {
|
||||
val trailer =
|
||||
document.selectFirst("nav.nav.card-nav.nav-slider a[data-bs-toggle=\"modal\"]")
|
||||
?.attr("data-trailer")?.let {
|
||||
"https://www.youtube.com/embed/$it"
|
||||
}
|
||||
newMovieLoadResponse(title, url, TvType.Movie, url) {
|
||||
this.posterUrl = poster
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
this.rating = rating
|
||||
addActors(actors)
|
||||
this.recommendations = recommendations
|
||||
addTrailer(trailer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun invokeLocalSource(
|
||||
source: String,
|
||||
url: String,
|
||||
sourceCallback: (ExtractorLink) -> Unit
|
||||
) {
|
||||
val m3uLink =
|
||||
app.get(url, referer = "$mainUrl/").document.select("script")
|
||||
.find {
|
||||
it.data().contains("var sources = [];") || it.data()
|
||||
.contains("playerInstance =")
|
||||
}?.data()
|
||||
?.substringAfter("[{file:\"")?.substringBefore("\"}]") ?: return
|
||||
|
||||
M3u8Helper.generateM3u8(
|
||||
source,
|
||||
m3uLink,
|
||||
if (url.startsWith(mainUrl)) "$mainUrl/" else "https://vidmoly.to/"
|
||||
).forEach(sourceCallback)
|
||||
|
||||
}
|
||||
|
||||
override suspend fun loadLinks(
|
||||
data: String,
|
||||
isCasting: Boolean,
|
||||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
app.get(data).document.select("nav.nav.card-nav.nav-slider a.nav-link").map {
|
||||
Pair(it.attr("href"), it.text())
|
||||
}.apmap { (url, source) ->
|
||||
safeApiCall {
|
||||
app.get(url).document.select("div.card-video > iframe").attr("data-src")
|
||||
.let { link ->
|
||||
invokeLocalSource(source, link, callback)
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
data class Result(
|
||||
@JsonProperty("result") val result: ArrayList<Media>? = arrayListOf(),
|
||||
)
|
||||
|
||||
data class Media(
|
||||
@JsonProperty("title") val title: String? = null,
|
||||
@JsonProperty("poster") val poster: String? = null,
|
||||
@JsonProperty("slug") val slug: String? = null,
|
||||
@JsonProperty("slug_prefix") val slugPrefix: String? = null,
|
||||
)
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
package com.lagradost
|
||||
|
||||
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
||||
import com.lagradost.cloudstream3.plugins.Plugin
|
||||
import android.content.Context
|
||||
|
||||
@CloudstreamPlugin
|
||||
class HdfilmcehennemiPlugin: Plugin() {
|
||||
override fun load(context: Context) {
|
||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||
registerMainAPI(Hdfilmcehennemi())
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -7,7 +7,7 @@ cloudstream {
|
|||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
// authors = listOf("Cloudburst")
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
|
|
|
@ -111,7 +111,7 @@ class KuronimeProvider : MainAPI() {
|
|||
val type = getType(
|
||||
document.selectFirst(".infodetail > ul > li:nth-child(7)")?.ownText()?.trim().toString()
|
||||
)
|
||||
val trailer = document.selectFirst("div.tply iframe")?.attr("data-lazy-src")
|
||||
val trailer = document.selectFirst("div.tply iframe")?.attr("data-src")
|
||||
val year = Regex("\\d, ([0-9]*)").find(
|
||||
document.select(".infodetail > ul > li:nth-child(5)").text()
|
||||
)?.groupValues?.get(1)?.toIntOrNull()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -7,7 +7,7 @@ cloudstream {
|
|||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
// authors = listOf("Cloudburst")
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
|
@ -23,5 +23,5 @@ cloudstream {
|
|||
"Movie",
|
||||
)
|
||||
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=lk21.homes&sz=%size%"
|
||||
}
|
|
@ -9,7 +9,7 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class LayarKacaProvider : MainAPI() {
|
||||
override var mainUrl = "https://lk21.xn--6frz82g"
|
||||
override var mainUrl = "https://lk21.homes"
|
||||
override var name = "LayarKaca"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -7,7 +7,7 @@ cloudstream {
|
|||
// All of these properties are optional, you can safely remove them
|
||||
|
||||
// description = "Lorem Ipsum"
|
||||
// authors = listOf("Cloudburst")
|
||||
authors = listOf("Hexated")
|
||||
|
||||
/**
|
||||
* Status int as the following:
|
||||
|
|
|
@ -157,7 +157,7 @@ class NontonAnimeIDProvider : MainAPI() {
|
|||
val type = getType(document.select("span.typeseries").text().trim())
|
||||
val rating = document.select("span.nilaiseries").text().trim().toIntOrNull()
|
||||
val description = document.select(".entry-content.seriesdesc > p").text().trim()
|
||||
val trailer = document.selectFirst("iframe#traileryt")?.attr("data-src")
|
||||
val trailer = document.selectFirst("a.trailerbutton")?.attr("href")
|
||||
|
||||
val episodes = if (document.select("button.buttfilter").isNotEmpty()) {
|
||||
val id = document.select("input[name=series_id]").attr("value")
|
||||
|
|
Loading…
Reference in a new issue