From 6c764a38bb1b101d13dcc034fc7f94677df54391 Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Tue, 28 Jan 2025 18:27:13 +0100 Subject: [PATCH] s --- Sora/Utils/Loader/JSController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sora/Utils/Loader/JSController.swift b/Sora/Utils/Loader/JSController.swift index 836e196..e7d5dca 100644 --- a/Sora/Utils/Loader/JSController.swift +++ b/Sora/Utils/Loader/JSController.swift @@ -433,7 +433,7 @@ class JSController: ObservableObject { func fetchStreamUrlJSSecond(episodeUrl: String, completion: @escaping (String?) -> Void) { let url = URL(string: episodeUrl)! - let task = URLSession.shared.dataTask(with: url) { data, response, error in + let task = URLSession.custom.dataTask(with: url) { data, response, error in if let error = error { Logger.shared.log("URLSession error: \(error.localizedDescription)", type: "Error") DispatchQueue.main.async {