LibreTube/app/src/main/java/com/github/libretube/extensions/QualityString.kt
2023-01-26 19:25:23 +01:00

9 lines
280 B
Kotlin

package com.github.libretube.extensions
import com.github.libretube.api.obj.PipedStream
fun PipedStream?.qualityString(fileName: String): String {
this ?: return ""
return fileName + "_" + quality?.replace(" ", "_") + "_" + format + "." + mimeType?.split("/")?.last()
}