summaryrefslogtreecommitdiff
path: root/bin/common/ytclipo
blob: 4d9d846d1aa405dd5b24a4a84cd3dd058c1ebc43 (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"
notify-send "ytclipo" "$inp" || :

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