aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-21 16:06:14 -0200
committerEuAndreh <eu@euandre.org>2018-12-21 16:06:14 -0200
commitdf04ecc16f653ed2fcf86e2099d21630354a000f (patch)
tree438eb269b417457bf2c3da944f0bae2f1865606d
parentAdd save-exact=true to npmrc configuration. (diff)
downloaddotfiles-df04ecc16f653ed2fcf86e2099d21630354a000f.tar.gz
dotfiles-df04ecc16f653ed2fcf86e2099d21630354a000f.tar.xz
Add --write-description to youtube-dl scripts.
-rw-r--r--bash/youtube.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bash/youtube.sh b/bash/youtube.sh
index 584d09b..6ffb2da 100644
--- a/bash/youtube.sh
+++ b/bash/youtube.sh
@@ -6,15 +6,16 @@ export YT_TEMPLATE="~/Downloads/yt-dl/%(uploader)s/%(upload_date)s %(title)s.%(e
# Always downloads video, doesn't look at the download-archive
yt_dl() {
- youtube-dl "$1" -o "$YT_TEMPLATE"
+ youtube-dl "$1" -o "$YT_TEMPLATE" --write-description
}
export -f yt_dl
download() {
youtube-dl "$1" \
--download-archive ~/Nextcloud/cache/youtube-dl-seen.conf \
- --prefer-free-formats \
- --playlist-end $2 \
+ --prefer-free-formats \
+ --playlist-end $2 \
+ --write-description \
--output "$YT_TEMPLATE"
}
export -f download