samehadaku:fix homepage

This commit is contained in:
sora 2023-08-07 21:17:34 +07:00
parent 72622e8d58
commit 27d9b002df
7 changed files with 36 additions and 13 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 4 version = 5
cloudstream { cloudstream {

View File

@ -11,6 +11,11 @@ import com.lagradost.cloudstream3.utils.fixUrl
import com.lagradost.cloudstream3.utils.getAndUnpack import com.lagradost.cloudstream3.utils.getAndUnpack
import com.lagradost.cloudstream3.utils.getQualityFromName import com.lagradost.cloudstream3.utils.getQualityFromName
class Paistream : Streampai() {
override val name = "Paistream"
override val mainUrl = "https://paistream.my.id"
}
open class Streampai : ExtractorApi() { open class Streampai : ExtractorApi() {
override val name = "Streampai" override val name = "Streampai"
override val mainUrl = "https://streampai.my.id" override val mainUrl = "https://streampai.my.id"

View File

@ -10,5 +10,6 @@ class MinioppaiPlugin: Plugin() {
// All providers should be added in this manner. Please don't edit the providers list directly. // All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(Minioppai()) registerMainAPI(Minioppai())
registerExtractorAPI(Streampai()) registerExtractorAPI(Streampai())
registerExtractorAPI(Paistream())
} }
} }

View File

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 11 version = 12
cloudstream { cloudstream {

View File

@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class Samehadaku : MainAPI() { class Samehadaku : MainAPI() {
override var mainUrl = "https://samehadaku.day" override var mainUrl = "https://samehadaku.lat"
override var name = "Samehadaku" override var name = "Samehadaku"
override val hasMainPage = true override val hasMainPage = true
override var lang = "id" override var lang = "id"
@ -51,7 +51,7 @@ class Samehadaku : MainAPI() {
if (request.name != "Episode Terbaru" && page <= 1) { if (request.name != "Episode Terbaru" && page <= 1) {
val doc = app.get(request.data).document val doc = app.get(request.data).document
doc.select("div.widget_senction").forEach { block -> doc.select("div.widget_senction:not(:contains(Baca Komik))").forEach { block ->
val header = block.selectFirst("div.widget-title h3")?.ownText() ?: return@forEach val header = block.selectFirst("div.widget-title h3")?.ownText() ?: return@forEach
val home = block.select("div.animepost").mapNotNull { val home = block.select("div.animepost").mapNotNull {
it.toSearchResult() it.toSearchResult()

View File

@ -6,6 +6,7 @@ import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.nicehttp.Requests import com.lagradost.nicehttp.Requests
import com.lagradost.nicehttp.Session import com.lagradost.nicehttp.Session
import com.lagradost.cloudstream3.extractors.Filesim import com.lagradost.cloudstream3.extractors.Filesim
import com.lagradost.cloudstream3.extractors.GMPlayer
import com.lagradost.cloudstream3.extractors.StreamSB import com.lagradost.cloudstream3.extractors.StreamSB
import com.lagradost.cloudstream3.extractors.Voe import com.lagradost.cloudstream3.extractors.Voe
import com.lagradost.cloudstream3.extractors.helper.GogoHelper import com.lagradost.cloudstream3.extractors.helper.GogoHelper
@ -331,15 +332,19 @@ object SoraExtractor : SoraStream() {
"$dreamfilmAPI/series/$fixTitle/season-$season/episode-$episode" "$dreamfilmAPI/series/$fixTitle/season-$season/episode-$episode"
} }
val iframe = app.get(url).document.selectFirst("iframe.Moly")?.attr("data-src") val doc = app.get(url).document
loadCustomExtractor( doc.select("div#videosen a").apmap {
null, val iframe = app.get(it.attr("href")).document.selectFirst("div.card-video iframe")
iframe ?: return, ?.attr("data-src")
"$dreamfilmAPI/", loadCustomExtractor(
subtitleCallback, null,
callback, iframe ?: return@apmap,
Qualities.P1080.value "$dreamfilmAPI/",
) subtitleCallback,
callback,
Qualities.P1080.value
)
}
} }
suspend fun invokeSeries9( suspend fun invokeSeries9(
@ -3104,6 +3109,16 @@ object SoraExtractor : SoraStream() {
} }
class TravelR : GMPlayer() {
override val name = "TravelR"
override val mainUrl = "https://travel-russia.xyz"
}
class Mwish : Filesim() {
override val name = "Mwish"
override var mainUrl = "https://mwish.pro"
}
class Animefever : Filesim() { class Animefever : Filesim() {
override val name = "Animefever" override val name = "Animefever"
override var mainUrl = "https://animefever.fun" override var mainUrl = "https://animefever.fun"

View File

@ -15,5 +15,7 @@ class SoraStreamPlugin: Plugin() {
registerExtractorAPI(Multimovies()) registerExtractorAPI(Multimovies())
registerExtractorAPI(MultimoviesSB()) registerExtractorAPI(MultimoviesSB())
registerExtractorAPI(Yipsu()) registerExtractorAPI(Yipsu())
registerExtractorAPI(Mwish())
registerExtractorAPI(TravelR())
} }
} }