summaryrefslogtreecommitdiffstats
path: root/firefox-youtube-handler
blob: b3396120a688fff50096222c1c0a2f3c36fea58c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
proto='yt://'
url=$1
id=${url##$proto}
#smplayer $(youtube-dl -g ${id})

#urxvt -e bash -c "youtube-viewer -I \"http://youtube.com/watch?v=$id\"; sleep 5"
smplayer "http://youtube.com/watch?v=$id"