aboutsummaryrefslogtreecommitdiff
path: root/bash/youtube.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bash/youtube.sh')
-rw-r--r--bash/youtube.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/bash/youtube.sh b/bash/youtube.sh
index da2d154..7077739 100644
--- a/bash/youtube.sh
+++ b/bash/youtube.sh
@@ -5,29 +5,29 @@ export DEFAULT_INC_STEP=10
download() {
- youtube-dl "$1" \
- --download-archive ~/Nextcloud/txt/youtube-dl-seen.conf \
- --prefer-free-formats \
- --playlist-end $2 \
- --output "~/Downloads/yt-dl/%(uploader)s/%(upload_date)s - %(title)s.%(ext)s"
+ youtube-dl "$1" \
+ --download-archive ~/Nextcloud/txt/youtube-dl-seen.conf \
+ --prefer-free-formats \
+ --playlist-end $2 \
+ --output "~/Downloads/yt-dl/%(uploader)s/%(upload_date)s - %(title)s.%(ext)s"
}
export -f download
download_user() {
- download "https://www.youtube.com/user/$1" ${2-$DEFAULT_PLAYLIST_END}
+ download "https://www.youtube.com/user/$1" ${2-$DEFAULT_PLAYLIST_END}
}
export -f download_user
download_channel() {
- download "https://www.youtube.com/channel/$1" ${2-$DEFAULT_PLAYLIST_END}
+ download "https://www.youtube.com/channel/$1" ${2-$DEFAULT_PLAYLIST_END}
}
export -f download_channel
download_playlist() {
- download "https://www.youtube.com/playlist?list=$1" ${2-$DEFAULT_PLAYLIST_END}
+ download "https://www.youtube.com/playlist?list=$1" ${2-$DEFAULT_PLAYLIST_END}
}
export -f download_playlist