mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 23:52:09 +00:00
forgot this shared task
This commit is contained in:
parent
ae80a9aa06
commit
c03ac54a93
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class DownloadManager {
|
|||
let fileExtension = url.pathExtension.lowercased()
|
||||
|
||||
if fileExtension == "mp4" {
|
||||
let task = URLSession.shared.downloadTask(with: url) { tempLocalURL, response, error in
|
||||
let task = URLSession.custom.downloadTask(with: url) { tempLocalURL, response, error in
|
||||
if let tempLocalURL = tempLocalURL {
|
||||
do {
|
||||
try FileManager.default.moveItem(at: tempLocalURL, to: outputFileURL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue