Skip to content
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
@@ -0,0 +1,33 @@
package com.lagradost.cloudstream3.extractors

import com.lagradost.cloudstream3.Prerelease
import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.ExtractorLinkType
import com.lagradost.cloudstream3.utils.newExtractorLink

@Prerelease
open class Streamcash: ExtractorApi() {
override val name: String = "Streamcash"
override val mainUrl: String = "https://streamcash.to"
open val cdnUrl: String = "https://cdn.streamcash.to"
override val requiresReferer: Boolean = false

override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val id = url.removeSuffix("/").substringAfterLast("/")
callback.invoke(
newExtractorLink(
name = name,
source = name,
url = "$cdnUrl/videos/$id/index.m3u8",
type = ExtractorLinkType.M3U8
)
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ import com.lagradost.cloudstream3.extractors.VidHidePro5
import com.lagradost.cloudstream3.extractors.VidHidePro6
import com.lagradost.cloudstream3.extractors.VidHideHub
import com.lagradost.cloudstream3.extractors.Ryderjet
import com.lagradost.cloudstream3.extractors.Streamcash
import com.lagradost.cloudstream3.extractors.VidMoxy
import com.lagradost.cloudstream3.extractors.VidStack
import com.lagradost.cloudstream3.extractors.VideoSeyred
Expand Down Expand Up @@ -1090,6 +1091,7 @@ val extractorApis: AtomicMutableList<ExtractorApi> = atomicListOf(
Tantifilm(),
Userload(),
Supervideo(),
Streamcash(),

// StreamSB.kt works
// SBPlay(),
Expand Down