summaryrefslogtreecommitdiff
path: root/bin/common/ytclipo
blob: f8d30b4a70042fecf7838553e05febfd85909034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

inp="$1"
[ -z "$inp" ] && inp="$(ytlink)"
[ "$inp" ] || exit 1
>&2 printf "inp: %s\n" "$inp"
herbe "_ytclipo" "*$inp" || :

yt-dlp "$inp" \
	--restrict-filenames \
	--embed-chapters \
	-S "res:1080" \
	-P "$HOME/vids/youtube/" \
	-o "%(channel)s/%(title)s.%(ext)s"
herbe "_ytclipo" "finished downloading." || :