In order to use youtube-dl to download a video, play it, and then remove it,
I created a very simple script called 'temptube' to run in a terminal:
cd ~/tmptube
youtube-dl -f 43 $1
totem *.webm
rm ~/tmptube/*.webm
Right now, I use ixquick to search for a video's URL and cut-and-paste it
into a terminal after the script command. So: temptube
http://www.somewebsite.com
How can I integrate this into a browser so that I can just toggle a switch
and then click a link?
If anybody can point me in the right direction, I'd really appreciate it.
Thanks!
By the way, the script needs improvement. For instance, if I knew how to
access the file name of the downloaded file (obvious to some I'm sure), this
could work without the hack of downloading into a known empty directory in
order for rm *.webm to work.