Download a video (or its audio track) by sharing it to a shortcut
The shortcut calls a helper script run within a-Shell. This script passes the URL to yt-dlp to do the actual download. After the download completes, the file is opened in a share sheet where it may be copied to any app, such as VLC.
-
Install a-Shell
-
In a-Shell, install yt-dlp
$ pip install --upgrade yt-dlp --no-deps
-
Clone this repository or copy this file to any folder inside ~/Documents
$ cd $ git clone https://github.com/tucomel/yt-dlp-ios
-
Install the shortcut: iCloud link
- Share a video to Shortcuts and then yt-dlp-ios
- The downloaded file opens in a share sheet: choose an app
- (The temporary file is cleaned up)