mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix swiftformat offenses
This commit is contained in:
@@ -658,7 +658,7 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
|
|||||||
let videoId = json["videoId"].stringValue
|
let videoId = json["videoId"].stringValue
|
||||||
|
|
||||||
return extractFormatStreams(from: json["formatStreams"].arrayValue, videoId: videoId) +
|
return extractFormatStreams(from: json["formatStreams"].arrayValue, videoId: videoId) +
|
||||||
extractAdaptiveFormats(from: json["adaptiveFormats"].arrayValue, videoId: videoId) +
|
extractAdaptiveFormats(from: json["adaptiveFormats"].arrayValue, videoId: videoId) +
|
||||||
hls
|
hls
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -733,7 +733,6 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private func extractHLSStreams(from content: JSON) -> [Stream] {
|
private func extractHLSStreams(from content: JSON) -> [Stream] {
|
||||||
if let hlsURL = content.dictionaryValue["hlsUrl"]?.url {
|
if let hlsURL = content.dictionaryValue["hlsUrl"]?.url {
|
||||||
return [Stream(instance: account.instance, hlsURL: hlsURL)]
|
return [Stream(instance: account.instance, hlsURL: hlsURL)]
|
||||||
|
@@ -111,7 +111,7 @@ struct InstanceSettings: View {
|
|||||||
private var proxiesVideosToggle: some View {
|
private var proxiesVideosToggle: some View {
|
||||||
Toggle("Proxy videos", isOn: $proxiesVideos)
|
Toggle("Proxy videos", isOn: $proxiesVideos)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var invidiousCompanionToggle: some View {
|
private var invidiousCompanionToggle: some View {
|
||||||
Toggle("Invidious companion", isOn: $invidiousCompanion)
|
Toggle("Invidious companion", isOn: $invidiousCompanion)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user