kewlbear / YoutubeDL

An iOS app using youtube-dl Python module with PythonKit Swift package
MIT License
210 stars 36 forks source link

how can I access downloaded videos using a button in app ? #5

Closed iammarsaeed closed 2 years ago

kewlbear commented 3 years ago

Currently, videos are exported to camera roll.

iammarsaeed commented 3 years ago

@kewlbear how can I access it in swift UI. I am new to swift UI. Can you provide me a code snippet

kewlbear commented 3 years ago

One way is to modify https://github.com/kewlbear/YoutubeDL-iOS/blob/632934f370e3dee5b9e8e58d1c824b647845a7c3/Sources/YoutubeDL/Downloader.swift#L185. If you don't want to modify the package, you may be able to monitor progress object and use hardcoded URL.