mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 15:20:31 +05:30
9 lines
280 B
Kotlin
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()
|
|
}
|