diff options
author | Skiz <skiznet@aol.com> | 2024-11-16 16:14:46 -0500 |
---|---|---|
committer | Skiz <skiznet@aol.com> | 2024-11-16 16:14:46 -0500 |
commit | f102b97d8bcb5334c1d9891588259f242153c8b7 (patch) | |
tree | 6cd7bf01c4f5baaf3600f4409dfb90a51e456391 | |
parent | 4f01a9140a8aaae7d4e5648676c18b8eaac7c868 (diff) |
Switched to yt-dlp | mpv
-rwxr-xr-x | mediachad | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 # } |