mirror of
https://github.com/yattee/yattee.git
synced 2026-08-26 08:52:32 +00:00
Fix no streams reported from Piped (#974)
Piped currently is having an issue it would only return a muxed 360p stream, and it is rejected here because the audioCodec being set to nil.
This commit is contained in:
@@ -672,12 +672,14 @@ private struct PipedVideoStream: Decodable, Sendable {
|
||||
resolution = nil
|
||||
}
|
||||
|
||||
let audioCodec: String? = (videoOnly ?? true) ? nil : "aac"
|
||||
|
||||
return Stream(
|
||||
url: streamUrl,
|
||||
resolution: resolution,
|
||||
format: format ?? "unknown",
|
||||
videoCodec: codec,
|
||||
audioCodec: nil,
|
||||
audioCodec: audioCodec,
|
||||
bitrate: bitrate,
|
||||
fileSize: contentLength,
|
||||
isAudioOnly: false,
|
||||
|
||||
Reference in New Issue
Block a user