Posted by Wahaha in Linux (edited by a moderator )

function usage () {
echo "usage: yt"
echo " -h help"
echo " -c channels/subscriptions"
echo " -s query search"
echo " -g / -r gui mode (rofi/dmenu)"
echo " -m music mode (audio only) [dont use with -r]"
echo " nothing use defaults (search from prompt)"
	echo
	echo "add channel names to the file $sublistpath to show them"
	echo "in yt -c option. First word should be channel url, optionally"
	echo "followed by tab and then anything else (channel name/description)"
	echo "channels not in sublist can be viewed by typing their url in the prompt"
	echo 
	echo "example file format:"
	echo "markrober Mark Rober"
	echo "vsauce1 VSauce Michael Steven's Channel"
	echo "BlackGryph0n Black Gryph0n Gabriel Brown signs stuff"
	echo "TomScottGo Tom Scott"
	echo "danielthrasher Daniel Thrasher"
exit 0
}

See also: old.reddit.com/r/linux/comments/kl8ig3/commandline_youtube_video_search_and_play_utility/

3

Comments

You must log in or register to comment.

There's nothing here…