From 3ebae6d2166e5cb25e01bf0d4593f5b6249966ad Mon Sep 17 00:00:00 2001 From: Ray Cheung Date: Sun, 23 Aug 2026 18:22:10 +0800 Subject: [PATCH] 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. --- Yattee/Services/API/PipedAPI.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Yattee/Services/API/PipedAPI.swift b/Yattee/Services/API/PipedAPI.swift index 6d8e1b6d..809d5e2c 100644 --- a/Yattee/Services/API/PipedAPI.swift +++ b/Yattee/Services/API/PipedAPI.swift @@ -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,