vaiops/ytdl-mpv.sh

6 lines
168 B
Bash
Raw Normal View History

2021-12-09 08:16:56 +00:00
#!/bin/sh
set -ex
mkdir -p /dev/shm/ytdl
cd /dev/shm/ytdl
yt-dlp -f 'bestvideo[height<=360][ext=mp4]+bestaudio[ext=m4a]' "$(xsel -b)" --exec 'mpv --video-unscaled=yes'