mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Fix #519
This commit is contained in:
		@@ -620,6 +620,10 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
 | 
				
			|||||||
            .dictionaryValue["audioStreams"]?
 | 
					            .dictionaryValue["audioStreams"]?
 | 
				
			||||||
            .arrayValue
 | 
					            .arrayValue
 | 
				
			||||||
            .filter { $0.dictionaryValue["format"]?.string == "M4A" }
 | 
					            .filter { $0.dictionaryValue["format"]?.string == "M4A" }
 | 
				
			||||||
 | 
					            .filter { stream in
 | 
				
			||||||
 | 
					                let type = stream.dictionaryValue["audioTrackType"]?.string
 | 
				
			||||||
 | 
					                return type == nil || type == "ORIGINAL"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            .sorted {
 | 
					            .sorted {
 | 
				
			||||||
                $0.dictionaryValue["bitrate"]?.int ?? 0 >
 | 
					                $0.dictionaryValue["bitrate"]?.int ?? 0 >
 | 
				
			||||||
                    $1.dictionaryValue["bitrate"]?.int ?? 0
 | 
					                    $1.dictionaryValue["bitrate"]?.int ?? 0
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user