fix: media download UX and table row selection

- Fix: Remove aria2c from yt-dlp to allow native concurrent downloader to print progress
- Fix: Use generic 'Fetching media data...' message instead of hardcoding YouTube
- Fix: Remove onTapGesture from Table cells to restore native macOS SwiftUI row selection and use simultaneousGesture on the Table itself for double clicks
This commit is contained in:
nimbold
2026-06-07 23:39:18 +03:30
parent 49003665ef
commit fbae92aae9
6 changed files with 52 additions and 49 deletions
+2 -10
View File
@@ -122,7 +122,7 @@ final class MediaDownloadEngine: @unchecked Sendable {
}
try process.run()
messageUpdate("Fetching YouTube data...")
messageUpdate("Fetching media data...")
outputPipe.fileHandleForWriting.closeFile()
errorPipe.fileHandleForWriting.closeFile()
@@ -157,15 +157,7 @@ final class MediaDownloadEngine: @unchecked Sendable {
guard connections > 1 else { return }
arguments.append(contentsOf: ["--concurrent-fragments", "\(connections)"])
guard let aria2URL = Aria2DownloadEngine.findExecutable() else {
return
}
arguments.append(contentsOf: [
"--downloader", aria2URL.path,
"--downloader-args", "aria2c:-x \(connections) -s \(connections) -k 1M --file-allocation=none"
])
// Use yt-dlp's native concurrent downloader instead of aria2c to ensure progress parsing works via stdout
}
}