mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
More localization fixes
This commit is contained in:
@@ -14,7 +14,7 @@ struct OpeningStream: View {
|
||||
}
|
||||
|
||||
var reason: String {
|
||||
guard player.videoBeingOpened != nil else {
|
||||
guard player.videoBeingOpened == nil else {
|
||||
return "Loading streams...".localized()
|
||||
}
|
||||
|
||||
@@ -22,19 +22,12 @@ struct OpeningStream: View {
|
||||
return "Opening audio stream...".localized()
|
||||
}
|
||||
|
||||
return String(format: "Opening %@ stream...".localized(), streamQuality)
|
||||
return String(format: "Opening %@ stream...".localized(), player.streamSelection?.shortQuality ?? "")
|
||||
}
|
||||
|
||||
var state: String? {
|
||||
player.videoBeingOpened.isNil ? model.bufferingStateText : nil
|
||||
}
|
||||
|
||||
var streamQuality: String {
|
||||
guard let stream = player.streamSelection else { return " " }
|
||||
guard !player.musicMode else { return " audio " }
|
||||
|
||||
return " \(stream.shortQuality) "
|
||||
}
|
||||
}
|
||||
|
||||
struct OpeningStream_Previews: PreviewProvider {
|
||||
|
Reference in New Issue
Block a user