From 7c4d79903e78093722d628256bfe83f197e00931 Mon Sep 17 00:00:00 2001 From: EnigmaCurry Date: Wed, 13 Mar 2024 22:48:31 -0600 Subject: [PATCH] yt alias --- bashrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bashrc b/bashrc index e7fa5af..ae052ac 100644 --- a/bashrc +++ b/bashrc @@ -62,10 +62,14 @@ fi ## Watch any youtube/invidious video URL (or any URL yt-dlp supports) at the highest quality: ## Can read URL input directly if the argument is left blank (incognito mode) ## (Sometimes yt doesn't work, so use yt-720 as a backup) -yt() { - STREAM=$1; [[ "$STREAM" == "" ]] && read -e -p "Enter stream: " STREAM - yt-dlp -f bestvideo+bestaudio "$STREAM" -o - | mpv - --fs -force-seekable=yes -} +#### Old version: +# yt() { +# STREAM=$1; [[ "$STREAM" == "" ]] && read -e -p "Enter stream: " STREAM +# yt-dlp -f bestvideo+bestaudio "$STREAM" -o - | mpv - --fs -force-seekable=yes +# } +#### New version: mpv can run use yt-dlp all by itself, just pass the URL: +alias yt=mpv + ## Watch youtube/invidious video URL (or any URL yt-dlp supports) ## Uses a medium quality pre-muxed stream (its usually about 720p). ## Can read URL input directly if the argument is left blank (incognito mode)