ripvid

Pour riper une vidéo et l'uploader sur bebou - retour accueil

git clone git://bebou.netlib.re/ripvid

Log | Files | Refs | README |

ripvid (453B)


      1 #! /bin/sh
      2 
      3 [ "$#" != 1 ] && { echo "Seulement le lien en arg svp"; exit 1; }
      4 
      5 vid="$1"
      6 choice="$(yt-dlp -F "$vid" |
      7 	sed -n '/^ID/,$ p' |
      8 	fzy -m |
      9 	cut -d ' ' -f1 |
     10 	paste -s -d'+')"
     11 
     12 if [ "$choice" ] && [ "$vid" ];then
     13 	yt-dlp -f "$choice" --force-overwrites "$vid" -o /tmp/video.mp4
     14 	rsync /tmp/video.mp4 mbb:/home/meso/arthur.bebou.netlib.re/video.mp4
     15 	echo "http://arthur.bebou.netlib.re/video.mp4"
     16 	mpv http://arthur.bebou.netlib.re/video.mp4
     17 fi