fix subs for streamas with provided headers (#128)
Some checks failed
Build and Release / Build IPA (push) Has been cancelled
Build and Release / Build Mac Catalyst (push) Has been cancelled

This commit is contained in:
D Osman 2025-05-21 16:30:03 +01:00 committed by GitHub
parent 40f8332b4a
commit 178c847c1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {