[odrbin] add livestream script

This commit is contained in:
odrling 2024-04-09 02:02:43 +02:00
parent 62ec741cd0
commit 16b21a253a
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

5
.local/odrbin/livestream Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
url="$1"
while ! yt-dlp -j "${url}"; do sleep 10; done
exec mpv --no-resume-playback "${url}"