vaiops/ytdl-mpv.sh
2021-12-09 00:16:56 -08:00

6 lines
168 B
Bash
Executable file

#!/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'