diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-11 21:48:33 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-11 21:48:33 +0200 |
commit | 75196520b3d6a0e60db1d03a64aaa0655cc4f202 (patch) | |
tree | f1686f21f44afdb5439475906f7955347f9ddabb /bin/common | |
parent | 6b526e9df0a11007abb77713850f07e26aecfdc5 (diff) |
checkpoint
Diffstat (limited to 'bin/common')
-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" |