Pour riper une vidéo et l'uploader sur bebou - retour accueil
git clone git://bebou.netlib.re/ripvid
Log | Files | Refs | README |
commit 2f6c17aae333f4777ef2ed739b428537aa7208c9 parent ec1fbb9a84025c5dd6b84bd36d5e8819dbbfff42 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Sat, 24 May 2025 10:01:28 +0200 Première proposition du script Diffstat:
A | ripvid | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/ripvid b/ripvid @@ -0,0 +1,15 @@ +#! /bin/sh + +[ "$#" != 1 ] && { echo "Seulement le lien en arg svp"; exit 1; } + +vid="$1" + +choice="$(yt-dlp -F "$vid" | + sed -n '/^ID/,$ p' | + fzy -m | + cut -d ' ' -f1)" + +yt-dlp -f "$choice" --force-overwrites "$vid" -o /tmp/video.mp4 +rsync /tmp/video.mp4 mbb:/home/meso/arthur.bebou.netlib.re/video.mp4 +echo "http://arthur.bebou.netlib.re/video.mp4" +mpv http://arthur.bebou.netlib.re/video.mp4