From 75196520b3d6a0e60db1d03a64aaa0655cc4f202 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 11 Jul 2024 21:48:33 +0200 Subject: checkpoint --- bin/common/ytclipo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/common') 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" -- cgit v1.2.3