From 178c847c1c2d935458dc667358f7769ab12654c8 Mon Sep 17 00:00:00 2001 From: D Osman <80430633+DawudOsman@users.noreply.github.com> Date: Wed, 21 May 2025 16:30:03 +0100 Subject: [PATCH] fix subs for streamas with provided headers (#128) --- Sora/Views/MediaInfoView/MediaInfoView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sora/Views/MediaInfoView/MediaInfoView.swift b/Sora/Views/MediaInfoView/MediaInfoView.swift index 19f32c1..eacf951 100644 --- a/Sora/Views/MediaInfoView/MediaInfoView.swift +++ b/Sora/Views/MediaInfoView/MediaInfoView.swift @@ -617,7 +617,7 @@ struct MediaInfoView: View { if streams.count > 1 { self.showStreamSelectionAlert(streams: streams, fullURL: href, subtitles: result.subtitles?.first) } else { - self.playStream(url: streams[0]["streamUrl"] as? String ?? "", fullURL: href, subtitles: streams[0]["subtitle"] as? String ?? "", headers: streams[0]["headers"] as! [String : String]) + self.playStream(url: streams[0]["streamUrl"] as? String ?? "", fullURL: href, subtitles: result.subtitles?.first, headers: streams[0]["headers"] as! [String : String]) } } else if let streams = result.streams, !streams.isEmpty {