From df04ecc16f653ed2fcf86e2099d21630354a000f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 21 Dec 2018 16:06:14 -0200 Subject: Add --write-description to youtube-dl scripts. --- bash/youtube.sh | 7 ++++--- 1 file 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 -- cgit v1.2.3