Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extractor: added Pixeldrain, Wibufile and fix some extractors #502

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import com.lagradost.cloudstream3.utils.Qualities
import com.lagradost.cloudstream3.utils.getQualityFromName
import kotlinx.coroutines.delay

class Dooood : DoodLaExtractor() {
override var mainUrl = "https://dooood.com"
}

class DoodWfExtractor : DoodLaExtractor() {
override var mainUrl = "https://dood.wf"
}
Expand Down
19 changes: 17 additions & 2 deletions app/src/main/java/com/lagradost/cloudstream3/extractors/Filesim.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.utils.*
import com.lagradost.cloudstream3.utils.M3u8Helper.Companion.generateM3u8

class Guccihide : Filesim() {
override val name = "Guccihide"
override var mainUrl = "https://guccihide.com"
}

class Ahvsh : Filesim() {
override val name = "Ahvsh"
override var mainUrl = "https://ahvsh.com"
}

class Moviesm4u : Filesim() {
override val mainUrl = "https://moviesm4u.com"
override val name = "Moviesm4u"
Expand All @@ -15,6 +25,11 @@ class FileMoonIn : Filesim() {
override val name = "FileMoon"
}

class StreamhideTo : Filesim() {
override val mainUrl = "https://streamhide.to"
override val name = "Streamhide"
}

class StreamhideCom : Filesim() {
override var name: String = "Streamhide"
override var mainUrl: String = "https://streamhide.com"
Expand Down Expand Up @@ -42,15 +57,15 @@ class FileMoonSx : Filesim() {
open class Filesim : ExtractorApi() {
override val name = "Filesim"
override val mainUrl = "https://files.im"
override val requiresReferer = false
override val requiresReferer = true

override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val response = app.get(url, referer = mainUrl).document
val response = app.get(url, referer = referer).document
response.select("script[type=text/javascript]").map { script ->
if (script.data().contains(Regex("eval\\(function\\(p,a,c,k,e,[rd]"))) {
val unpackedscript = getAndUnpack(script.data())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.lagradost.cloudstream3.extractors

import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.Qualities

open class Pixeldrain : ExtractorApi() {
override val name = "Pixeldrain"
override val mainUrl = "https://pixeldrain.com"
override val requiresReferer = false
override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val mId = Regex("/([ul]/[\\da-zA-Z\\-]+)").find(url)?.groupValues?.get(1)?.split("/")
callback.invoke(
ExtractorLink(
this.name,
this.name,
"$mainUrl/api/file/${mId?.last() ?: return}?download",
url,
Qualities.Unknown.value,
)
)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper
import kotlin.random.Random

class Sblona : StreamSB() {
override var name = "Sblona"
override var mainUrl = "https://sblona.com"
}

class Lvturbo : StreamSB() {
override var name = "Lvturbo"
override var mainUrl = "https://lvturbo.com"
}

class Sbrapid : StreamSB() {
override var name = "Sbrapid"
override var mainUrl = "https://sbrapid.com"
}

class Sbface : StreamSB() {
override var name = "Sbface"
override var mainUrl = "https://sbface.com"
}

class Sbsonic : StreamSB() {
override var name = "Sbsonic"
override var mainUrl = "https://sbsonic.com"
}

class Vidgomunimesb : StreamSB() {
override var mainUrl = "https://vidgomunimesb.xyz"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.lagradost.cloudstream3.extractors

import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.Qualities
import java.net.URI

open class Wibufile : ExtractorApi() {
override val name: String = "Wibufile"
override val mainUrl: String = "https://wibufile.com"
override val requiresReferer = false

override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val res = app.get(url).text
val video = Regex("src: ['\"](.*?)['\"]").find(res)?.groupValues?.get(1)

callback.invoke(
ExtractorLink(
name,
name,
video ?: return,
"$mainUrl/",
Qualities.Unknown.value,
URI(url).path.endsWith(".m3u8")
)
)

}

}
11 changes: 11 additions & 0 deletions app/src/main/java/com/lagradost/cloudstream3/utils/ExtractorApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
XStreamCdn(),

StreamSB(),
Sblona(),
Vidgomunimesb(),
StreamSB1(),
StreamSB2(),
Expand All @@ -265,6 +266,10 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
Sbflix(),
Streamsss(),
Sbspeed(),
Sbsonic(),
Sbface(),
Sbrapid(),
Lvturbo(),

Fastream(),

Expand Down Expand Up @@ -300,6 +305,7 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
DoodToExtractor(),
DoodSoExtractor(),
DoodLaExtractor(),
Dooood(),
DoodWsExtractor(),
DoodShExtractor(),
DoodWatchExtractor(),
Expand Down Expand Up @@ -366,9 +372,14 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(

Movhide(),
StreamhideCom(),
StreamhideTo(),
Pixeldrain(),
Wibufile(),
FileMoonIn(),
Moviesm4u(),
Filesim(),
Ahvsh(),
Guccihide(),
FileMoon(),
FileMoonSx(),
Vido(),
Expand Down