#!/bin/bash
cd ~/
mkdir -p ~/tmptube
cd ~/tmptube
xdotool key ctrl+l
youtube-dl -f 43 $(xclip -o) || youtube-dl $(xclip -o)
vlc *.webm || vlc *.*
rm ~/tmptube/*.*
rmdir ~/tmptube

Forcing webm with an alternative works. Playing with youtube-dl options from there is just personal preference/details.

It seems I just need to let it fail once or twice, then it works all the time.

andermetalsh, please help me understand why did you use youtube-dl -g . I don't get it.

Reply via email to