Update Sora/Views/MediaViews/MediaExtraction.swift

Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com>
This commit is contained in:
cranci 2025-01-03 21:34:59 +01:00 committed by GitHub
parent f10442fec4
commit c289601168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,7 @@ extension MediaView {
if pageRedirects {
dispatchGroup.enter() // Start tracking the redirect task
URLSession.custom.dataTask(with: url) { data, response, error in
URLSession.custom.dataTask(with: url) { data, _, error in
guard let data = data, error == nil else {
dispatchGroup.leave() // End tracking if there's an error
return