summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-11-16 16:14:46 -0500
committerSkiz <skiznet@aol.com>2024-11-16 16:14:46 -0500
commitf102b97d8bcb5334c1d9891588259f242153c8b7 (patch)
tree6cd7bf01c4f5baaf3600f4409dfb90a51e456391
parent4f01a9140a8aaae7d4e5648676c18b8eaac7c868 (diff)
Switched to yt-dlp | mpv
-rwxr-xr-xmediachad9
1 files changed, 8 insertions, 1 deletions
diff --git a/mediachad b/mediachad
index 16f5826..a17d6e4 100755
--- a/mediachad
+++ b/mediachad
@@ -30,6 +30,13 @@ program_check "mpv"
program_check "yt-dlp"
# yt-fzf
-ytfzf --loop --pages=3 --force-youtube "$input" > /dev/null 2>&1 || echo "Error! Run again"
+#ytfzf --loop --pages=3 --force-youtube "$input" > /dev/null 2>&1 || echo "Error! Run again"
+
+# Get link
+ytfzf --pages=3 --force-youtube -L "$input" | grep "youtube.com" | xargs -I {} yt-dlp -o - --quiet "{}" | mpv - --pause > /dev/null 2>&1
+
+
+# USING YT-DLP
+#yt-dlp -o - --quiet "link" | mpv - --pause > /dev/null 2>&1
# }