dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit b14376c869cdfe30669ce74fb10ba4f210bc05c0
parent a29861bb8c9a819f22a2649019630abed5e3ca45
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri,  6 Nov 2020 12:09:25 +0100

newsboat: move second notification to bcdl

Former-commit-id: aa0c63e001e0e70241328a2ef46beefa3f9b1416
Diffstat:
Mnewsboat/config | 2+-
Mscripts/bcdl | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/newsboat/config b/newsboat/config @@ -58,5 +58,5 @@ macro c set browser "printf '%s' %u | clc" ; open-in-browser ; set browser "link macro u set browser "urlview"; open-in-browser ; set browser "linkhandler %u" macro a set browser "newsboat-dl aonly %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u" macro d set browser "newsboat-dl av %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u" -macro l set browser "notify 'Downloading' %u 'bcdl' && setsid -f bcdl %u >/tmp/bcdl$(date +%s).log 2>&1 && notify 'Downloaded' %u 'bcdl'"; open-in-browser; set browser "linkhandler %u" +macro l set browser "notify 'Downloading' %u 'bcdl' && setsid -f bcdl %u >/tmp/bcdl$(date +%s).log 2>&1"; open-in-browser; set browser "linkhandler %u" macro s set browser "pocket save %u && notify 'Saved to Pocket' %u 'pocket'"; open-in-browser ; set browser "linkhandler %u" diff --git a/scripts/bcdl b/scripts/bcdl @@ -15,3 +15,4 @@ cd "$name" || { printf "Couldn't cd into directory %s\n" "$(pwd)/$name"; exit 1; youtube-dlc -f mp3 -o "%(playlist_index)s %(title)s %(id)s.%(ext)s" "$url" printf "#EXTM3U\n#PLAYLIST:%s\n#EXTART:%s\n" "$name" "$artist" > "$name".m3u youtube-dlc -f mp3 --get-filename -o "%(playlist_index)s %(title)s %(id)s.%(ext)s" "$url" >> "$name".m3u +notify "Downloaded $artist - $name" "$url" bcdl