Swift
Date: Februar 2023
Information:
Description
An Application to automatically download m3u8 playlist videos fast from the browser and convert them to mp4.
Reason for development
My brother and father needed a way to automatically download videos from a website without needing to open the developer tools in the browser.
Problems I faced
- Videos only available after login
- M3u8 videos not easily downloadable
- Convert .ts to mp4
How I solved them
- WebView that automatically logs in with
WKWebView
‘sevaluateJavascript
function. - Asynchronously download video snippets and merge them together
ffmpeg
What I learned
- How to create a MacOS app with Swift UI
- How to download videos with
URLSession
- Automatically fill forms with
WKWebView
Resources
Play Video