ytcli

Des commandes pour utiliser youtube - retour accueil

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

Log | Files | Refs | README |

commit 07b0d890b67adec8ed15b1fd3c998cb5afda3acf
parent 82ebfd0a8b323c9f30c1137f1b959b0c8ce7dbdc
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Mon,  9 Jun 2025 12:46:52 +0200

Ajout du support nebula avec netrc

Diffstat:
Myt | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/yt b/yt @@ -1,7 +1,10 @@ #! /bin/sh -[ "$1" = "c" ] \ -&& { format=$(yt-dlp -F "$2" |sed '1,8 d' | fzy -m -q 18 | cut -d' ' -f1 | paste -s -d '+' -); video="$2"; } \ -|| { format="18"; video="$1"; } -mpv --hwdec=auto --ytdl-format="$format" --cache-secs=45 --volume=50 "$video" 2>/dev/null +if [ "$1" = "c" ];then + echo "$2" | grep -Eq "nebula\.tv" && pass="-n" + format=$(yt-dlp "$pass" -F "$2" |sed '1,8 d' | fzy -m -q 18 | cut -d' ' -f1 | paste -s -d '+' -); video="$2"; +else + format="18"; video="$1"; +fi +mpv --hwdec=auto --ytdl-raw-options=netrc= --ytdl-format="$format" --cache-secs=45 --volume=50 "$video" 2>/dev/null