From 1a1ce973e82a33688178635e471fdcbd0fb41ffe Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:23:06 +0100 Subject: [PATCH] fixed the double stream option --- Sora/Views/MediaInfoView/MediaInfoView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sora/Views/MediaInfoView/MediaInfoView.swift b/Sora/Views/MediaInfoView/MediaInfoView.swift index ec3e94a..9fd6d47 100644 --- a/Sora/Views/MediaInfoView/MediaInfoView.swift +++ b/Sora/Views/MediaInfoView/MediaInfoView.swift @@ -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) {