mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Revert "feat(StreamSB) stream break: support audiotracks"
This reverts commit 078caf9f88
.
This commit is contained in:
parent
f9e8493736
commit
6af5331d0e
1 changed files with 8 additions and 17 deletions
|
@ -3,10 +3,9 @@ package com.lagradost.cloudstream3.extractors
|
|||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.cloudstream3.SubtitleFile
|
||||
import com.lagradost.cloudstream3.app
|
||||
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
||||
import com.lagradost.cloudstream3.utils.ExtractorApi
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||
|
||||
class Sbspeed : StreamSB() {
|
||||
override var name = "Sbspeed"
|
||||
|
@ -145,22 +144,14 @@ open class StreamSB : ExtractorApi() {
|
|||
referer = url,
|
||||
).parsedSafe<Main>()
|
||||
// val urlmain = mapped.streamData.file.substringBefore("/hls/")
|
||||
|
||||
safeApiCall {
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
M3u8Helper.generateM3u8(
|
||||
name,
|
||||
name,
|
||||
mapped?.streamData?.file ?: return@safeApiCall,
|
||||
mapped?.streamData?.file ?: return,
|
||||
url,
|
||||
Qualities.Unknown.value,
|
||||
true,
|
||||
headers
|
||||
)
|
||||
)
|
||||
}
|
||||
headers = headers
|
||||
).forEach(callback)
|
||||
|
||||
mapped?.streamData?.subs?.map {sub ->
|
||||
mapped.streamData.subs?.map {sub ->
|
||||
subtitleCallback.invoke(
|
||||
SubtitleFile(
|
||||
sub.label.toString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue