[Bugfix] Fix duplicate quality on source list on sflix (#963)

This commit is contained in:
Jace 2022-04-18 09:48:33 +08:00 committed by GitHub
parent 1d8300341e
commit 34a30615b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -605,14 +605,12 @@ open class SflixProvider : MainAPI() {
M3u8Helper().m3u8Generation(M3u8Helper.M3u8Stream(this.file, null), true)
.map { stream ->
//println("stream: ${stream.quality} at ${stream.streamUrl}")
val qualityString = if ((stream.quality ?: 0) == 0) label
?: "" else "${stream.quality}p"
ExtractorLink(
caller.name,
"${caller.name} $qualityString $name",
"${caller.name} $name",
stream.streamUrl,
caller.mainUrl,
getQualityFromName(stream.quality.toString()),
getQualityFromName(stream.quality?.toString()),
true,
extractorData = extractorData
)