mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-13 21:10:23 +00:00
fixed the double stream option
This commit is contained in:
parent
6b876f8ee0
commit
1a1ce973e8
1 changed files with 4 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ struct MediaInfoView: View {
|
|||
if !isFetchingEpisode {
|
||||
isFetchingEpisode = true
|
||||
fetchStream(href: ep.href)
|
||||
DropManager.shared.showDrop(title: "Fetching Stream", subtitle: "", duration: 1.0, icon: UIImage(systemName: "arrow.triangle.2.circlepath"))
|
||||
DropManager.shared.showDrop(title: "Fetching Stream", subtitle: "", duration: 0.5, icon: UIImage(systemName: "arrow.triangle.2.circlepath"))
|
||||
}
|
||||
}
|
||||
.disabled(isFetchingEpisode)
|
||||
|
|
@ -330,6 +330,7 @@ struct MediaInfoView: View {
|
|||
handleStreamFailure()
|
||||
return
|
||||
}
|
||||
isFetchingEpisode = false
|
||||
playStream(url: url, fullURL: href)
|
||||
}
|
||||
} else if module.metadata.streamAsyncJS == true {
|
||||
|
|
@ -338,6 +339,7 @@ struct MediaInfoView: View {
|
|||
handleStreamFailure()
|
||||
return
|
||||
}
|
||||
isFetchingEpisode = false
|
||||
playStream(url: url, fullURL: href)
|
||||
}
|
||||
} else {
|
||||
|
|
@ -346,6 +348,7 @@ struct MediaInfoView: View {
|
|||
handleStreamFailure()
|
||||
return
|
||||
}
|
||||
isFetchingEpisode = false
|
||||
playStream(url: url, fullURL: href)
|
||||
}
|
||||
}
|
||||
|
|
@ -354,7 +357,6 @@ struct MediaInfoView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
isFetchingEpisode = false
|
||||
}
|
||||
|
||||
func handleStreamFailure(error: Error? = nil) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue