ytcli

Des commandes pour utiliser youtube - retour accueil

git clone git://bebou.netlib.re/ytcli
Log | Files | Refs | README |

commit b0210362cc25c313abd14dc645d521f655040950
parent ef1be2489f5d229c63d663551c9d5cfa9849e71d
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Mon, 11 Dec 2023 20:41:15 +0100

Ajout du script pour ajouter une chaîne

Diffstat:
Aytaddsubscription | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/ytaddsubscription b/ytaddsubscription @@ -0,0 +1,10 @@ +#! /bin/sh + +string=$(/home/arthur/git/ytcli/ytgetchannel "$@" | +column -ts' ' | +fzy | +awk '{print $1,$2}' | +xargs -r printf 'feed "Y-%s" "https://www.youtube.com/feeds/videos.xml?channel_id=%s"\n') +sed -i "/wait/ i\ $string" /home/arthur/.sfeed/sfeedrc +echo "$string" +