summaryrefslogtreecommitdiff
path: root/lib/action/Download
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2023-04-19 21:23:42 +0200
committerLM-LCL <hello@exaltedelite.club>2023-04-19 21:23:42 +0200
commitb98f0f496b6739749257804297468fb71845a776 (patch)
tree44096c59211f1d877515914273cde862fbf47c1f /lib/action/Download
EZown
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")"
+