diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-12 14:56:14 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-12 14:56:14 +0200 |
commit | a4c01b0831d11775d46d1dca00b528397cbf4b03 (patch) | |
tree | 4b3ef69cb688a9db0b4d7b527f4ffa90dd5ceb2e /bin/common/ytclipo | |
parent | cc58700ad2483cd7ff8c9b56c0a77fc492808c01 (diff) | |
parent | 320b7ed28d5b142d208f03a3e2f851bec9e1a678 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/common/ytclipo')
-rwxr-xr-x | bin/common/ytclipo | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/common/ytclipo b/bin/common/ytclipo index b11f84a..4d9d846 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -1,13 +1,14 @@ #!/bin/sh -inp="$(ytlink)" +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 \ - -f "b" \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ -o "%(channel)s/%(title)s.%(ext)s" |