You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @hileo . Got more time to work on this, and here's what I came up with.
Add package YoutubeDL-iOS locally. Had to do some changes on the package so I had to add it locally.
Look for the yt_dlp function, 'public func yt_dlp(argv: ...', and make the progress parameter a throwing closure.
Throw an error from the download call. 'try await yt_dlp(argv: argv) { ... '
I think throwing is the right approach, as the original function already throws. Though I haven't checked deeper on how it affects the process, etc. Let us know what you think. @kewlbear
Can you guide me on how to cancel an ongoing download? Calling download again while another is downloading causes a crash. Thanks~
The text was updated successfully, but these errors were encountered: