summaryrefslogtreecommitdiff
path: root/lib/action/Download
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action/Download')
-rwxr-xr-xlib/action/Download10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/action/Download b/lib/action/Download
new file mode 100755
index 0000000..01e8eb5
--- /dev/null
+++ b/lib/action/Download
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+source ./util/verify/cbd-https
+source ./util/dpath
+
+yt-dlp -f 'bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
+ -o "$DPATH/%(title)s.%(ext)s" \
+ --embed-chapters \
+ "$(is_https_url_cbd "$1")"
+