mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
[Bugfix] Fix duplicate quality on source list on sflix (#963)
This commit is contained in:
parent
1d8300341e
commit
34a30615b1
1 changed files with 2 additions and 4 deletions
|
@ -605,14 +605,12 @@ open class SflixProvider : MainAPI() {
|
||||||
M3u8Helper().m3u8Generation(M3u8Helper.M3u8Stream(this.file, null), true)
|
M3u8Helper().m3u8Generation(M3u8Helper.M3u8Stream(this.file, null), true)
|
||||||
.map { stream ->
|
.map { stream ->
|
||||||
//println("stream: ${stream.quality} at ${stream.streamUrl}")
|
//println("stream: ${stream.quality} at ${stream.streamUrl}")
|
||||||
val qualityString = if ((stream.quality ?: 0) == 0) label
|
|
||||||
?: "" else "${stream.quality}p"
|
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
caller.name,
|
caller.name,
|
||||||
"${caller.name} $qualityString $name",
|
"${caller.name} $name",
|
||||||
stream.streamUrl,
|
stream.streamUrl,
|
||||||
caller.mainUrl,
|
caller.mainUrl,
|
||||||
getQualityFromName(stream.quality.toString()),
|
getQualityFromName(stream.quality?.toString()),
|
||||||
true,
|
true,
|
||||||
extractorData = extractorData
|
extractorData = extractorData
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue