by quintonish · 6y ago · 0 comments
[1] https://www.reddit.com/r/Piracy/comments/baufql/youtubedl_th...
$ cat ~/bin/termux-url-opener #!/data/data/com.termux/files/usr/bin/env bash
read -ep "[c]ast or [d]ownload: " -i "c" choice case "${choice}" in c|C) catt cast "${1}" ;; d|D) pip install --upgrade youtube-dl cd ~/storage/movies youtube-dl "${1}" ;; *) echo "Sorry, that's invalid." exit 65 ;; esac