commit 943ff1a19f4d7199ef2e70676eacadac7ad0d4f0
parent c1bd7c1f8b62fc23fb79d100883d7c9265f48043
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Sat, 17 Oct 2020 01:16:16 -0400

fix newsboat youtube linkhandler path

Diffstat:
M.config/newsboat/config | 4+---
M.local/bin/pod-dl | 4++--
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/.config/newsboat/config b/.config/newsboat/config @@ -30,14 +30,12 @@ color listfocus_unread yellow default bold color info red black bold color article cyan default -browser $SCRIPTS/handling/linkhandler -# external-url-viewer "less" +browser ~/.local/bin/linkhandler macro , open-in-browser macro t set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler macro w set browser "w3m"; open-in-browser ; set browser linkhandler -# macro P external-url-viewer "grep" macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler player "$SCRIPTS/handling/pod-dl" diff --git a/.local/bin/pod-dl b/.local/bin/pod-dl @@ -1,12 +1,12 @@ #!/bin/sh -tmux kill-session -t Podcast 2 > /dev/null +# tmux kill-session -t Podcast 2 &> /dev/null file=$(tail -n 1 $HOME/.local/share/newsboat/queue) url=$(echo $file | sed 's/."\/home.*$//') dir=$(echo $file | sed 's/^.*"\/home/\/home/; s/.$//') -$TERMINAL -c dropdown -t Podcast -e $SCRIPTS/utilities/tmux-vlc "$url" +$TERMINAL -c dropdown -t Podcast -e ~/.local/bin/tmux-vlc "$url" # notify-send -i "$HOME/.fonts/svg/rss.svg" "Download initiated" # wget -LO $dir $url && \