ytcli

Des commandes pour utiliser youtube - retour accueil

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

ytaddsubscription (239B)


      1 #! /bin/sh
      2 
      3 string=$(ytgetchannel "$@" |
      4 column -ts'	' |
      5 fzy |
      6 awk '{print $1,$2}' |
      7 xargs -r printf 'feed "Y-%s" "https://www.youtube.com/feeds/videos.xml?channel_id=%s"\n')
      8 sed -i "/wait/ i\	$string" $HOME/.sfeed/sfeedrc
      9 echo "$string"
     10