mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 14:42:05 +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
 | 
			
		||||
 | 
			
		||||
        return extractFormatStreams(from: json["formatStreams"].arrayValue, videoId: videoId) +
 | 
			
		||||
        extractAdaptiveFormats(from: json["adaptiveFormats"].arrayValue, videoId: videoId) +
 | 
			
		||||
            extractAdaptiveFormats(from: json["adaptiveFormats"].arrayValue, videoId: videoId) +
 | 
			
		||||
            hls
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -733,7 +733,6 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    private func extractHLSStreams(from content: JSON) -> [Stream] {
 | 
			
		||||
        if let hlsURL = content.dictionaryValue["hlsUrl"]?.url {
 | 
			
		||||
            return [Stream(instance: account.instance, hlsURL: hlsURL)]
 | 
			
		||||
 
 | 
			
		||||
@@ -111,7 +111,7 @@ struct InstanceSettings: View {
 | 
			
		||||
    private var proxiesVideosToggle: some View {
 | 
			
		||||
        Toggle("Proxy videos", isOn: $proxiesVideos)
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    private var invidiousCompanionToggle: some View {
 | 
			
		||||
        Toggle("Invidious companion", isOn: $invidiousCompanion)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user