mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-20 16:12:50 +00:00
fixde progressesss
This commit is contained in:
parent
6a6b3df298
commit
b26255964f
2 changed files with 5 additions and 7 deletions
Binary file not shown.
|
|
@ -69,7 +69,7 @@ extension MediaView {
|
|||
|
||||
if !subURLs.isEmpty || !dubURLs.isEmpty {
|
||||
DispatchQueue.main.async {
|
||||
self.presentStreamSelection(subURLs: subURLs, dubURLs: dubURLs)
|
||||
self.presentStreamSelection(subURLs: subURLs, dubURLs: dubURLs, fullURL: urlString)
|
||||
}
|
||||
} else {
|
||||
DispatchQueue.main.async {
|
||||
|
|
@ -88,13 +88,11 @@ extension MediaView {
|
|||
let mp4URLs = extractStreamURLs(from: patternHTML, streamType: "MP4").map { $0.replacingOccurrences(of: "amp;", with: "") }
|
||||
|
||||
DispatchQueue.main.async {
|
||||
Logger.shared.log("MP4 URLs: \(mp4URLs)")
|
||||
self.playStream(urlString: mp4URLs.first, fullURL: patternURL.absoluteString)
|
||||
self.playStream(urlString: mp4URLs.first, fullURL: urlString)
|
||||
}
|
||||
}.resume()
|
||||
} else {
|
||||
DispatchQueue.main.async {
|
||||
Logger.shared.log("stream URLs: \(streamURLs)")
|
||||
self.playStream(urlString: streamURLs.first, fullURL: urlString)
|
||||
}
|
||||
}
|
||||
|
|
@ -167,7 +165,7 @@ extension MediaView {
|
|||
}
|
||||
}
|
||||
|
||||
func presentStreamSelection(subURLs: [String], dubURLs: [String]) {
|
||||
func presentStreamSelection(subURLs: [String], dubURLs: [String], fullURL: String) {
|
||||
let uniqueSubURLs = Array(Set(subURLs))
|
||||
let uniqueDubURLs = Array(Set(dubURLs))
|
||||
|
||||
|
|
@ -176,7 +174,7 @@ extension MediaView {
|
|||
if !uniqueDubURLs.isEmpty {
|
||||
for dubURL in uniqueDubURLs {
|
||||
alert.addAction(UIAlertAction(title: "DUB", style: .default) { _ in
|
||||
self.playStream(urlString: dubURL, fullURL: dubURL)
|
||||
self.playStream(urlString: dubURL, fullURL: fullURL)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -184,7 +182,7 @@ extension MediaView {
|
|||
if !uniqueSubURLs.isEmpty {
|
||||
for subURL in uniqueSubURLs {
|
||||
alert.addAction(UIAlertAction(title: "SUB", style: .default) { _ in
|
||||
self.playStream(urlString: subURL, fullURL: subURL)
|
||||
self.playStream(urlString: subURL, fullURL: fullURL)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue