mirror of
https://github.com/cranci1/Sora.git
synced 2026-05-14 22:11:34 +00:00
fix subs for streamas with provided headers (#128)
This commit is contained in:
parent
40f8332b4a
commit
178c847c1c
1 changed files with 1 additions and 1 deletions
|
|
@ -617,7 +617,7 @@ struct MediaInfoView: View {
|
||||||
if streams.count > 1 {
|
if streams.count > 1 {
|
||||||
self.showStreamSelectionAlert(streams: streams, fullURL: href, subtitles: result.subtitles?.first)
|
self.showStreamSelectionAlert(streams: streams, fullURL: href, subtitles: result.subtitles?.first)
|
||||||
} else {
|
} 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 {
|
else if let streams = result.streams, !streams.isEmpty {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue