Des commandes pour utiliser youtube - retour accueil
git clone git://bebou.netlib.re/ytcli
Log | Files | Refs | README |
commit cbe02db996f8cd22dce4c4d51040e0f5afeafd8d parent b0210362cc25c313abd14dc645d521f655040950 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Mon, 11 Dec 2023 20:59:07 +0100 Légère généricisation Diffstat:
M | ytaddsubscription | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ytaddsubscription b/ytaddsubscription @@ -1,10 +1,10 @@ #! /bin/sh -string=$(/home/arthur/git/ytcli/ytgetchannel "$@" | +string=$(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 +sed -i "/wait/ i\ $string" $HOME/.sfeed/sfeedrc echo "$string"