Skip to content

Commit 1c7973d

Browse files
committed
feat(extractors): add stream wish mirror streamhls.to
- example url: https://streamhls.to/e/uszo5fi7zdda?33
1 parent f84414d commit 1c7973d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/StreamWishExtractor.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ class Playerwish : StreamWishExtractor() {
137137
override val mainUrl = "https://playerwish.com"
138138
}
139139

140+
class StreamHLS : StreamWishExtractor() {
141+
override val name = "StreamHLS"
142+
override val mainUrl = "https://streamhls.to"
143+
}
144+
140145
open class StreamWishExtractor : ExtractorApi() {
141146
override val name = "Streamwish"
142147
override val mainUrl = "https://streamwish.to"
@@ -212,6 +217,9 @@ open class StreamWishExtractor : ExtractorApi() {
212217
return if (inputUrl.contains("/f/")) {
213218
val videoId = inputUrl.substringAfter("/f/")
214219
"$mainUrl/$videoId"
220+
} else if (inputUrl.contains("/e/")) {
221+
val videoId = inputUrl.substringAfter("/e/")
222+
"$mainUrl/$videoId"
215223
} else {
216224
inputUrl
217225
}

library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/ExtractorApi.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ import com.lagradost.cloudstream3.extractors.Smoothpre
191191
import com.lagradost.cloudstream3.extractors.Sobreatsesuyp
192192
import com.lagradost.cloudstream3.extractors.Solidfiles
193193
import com.lagradost.cloudstream3.extractors.Ssbstream
194+
import com.lagradost.cloudstream3.extractors.StreamHLS
194195
import com.lagradost.cloudstream3.extractors.StreamM4u
195196
import com.lagradost.cloudstream3.extractors.StreamSB
196197
import com.lagradost.cloudstream3.extractors.StreamSB1
@@ -1164,6 +1165,7 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
11641165
Lulustream1(),
11651166
Lulustream2(),
11661167
StreamWishExtractor(),
1168+
StreamHLS(),
11671169
BigwarpIO(),
11681170
BigwarpArt(),
11691171
BgwpCC(),

0 commit comments

Comments
 (0)