shithub: rc

ref: f3afdf563f784c0a5703496f48c1a72dff4617f4
dir: /yt/v/

View raw version
#!/bin/rc
# yt/v - play a youtube video
# usage: yt/v videoid
# requires:
#	- nvi (https://git.sr.ht/~ft/nvi)

if(! ~ $#* 1){
	echo 'usage: yt/v videoid'
	exit usage
}

# easiest way, low quality
nvi -V 18 -v /tmp/vid.mp4 $"1 \
	&& treason /tmp/vid.mp4 \
	&& rm /tmp/vid.mp4