diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-09-13 00:08:33 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-09-13 00:08:33 +0200 |
commit | 5b5b338503b82cde42fb8cdd7791abb61b939111 (patch) | |
tree | 94b6aa445cc86976346b101d08277ac488cf36d3 /firefox-youtube-handler | |
parent | 8450e9ac59dfb678ae3fc2adca5bb837804710f3 (diff) | |
download | bin-5b5b338503b82cde42fb8cdd7791abb61b939111.tar.gz bin-5b5b338503b82cde42fb8cdd7791abb61b939111.tar.xz |
misc changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'firefox-youtube-handler')
-rwxr-xr-x | firefox-youtube-handler | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firefox-youtube-handler b/firefox-youtube-handler index 666588c..c071f95 100755 --- a/firefox-youtube-handler +++ b/firefox-youtube-handler @@ -3,14 +3,14 @@ proto='yt://' url=$1 id=${url##$proto} -#audiourl="$(youtube-dl -g -f 141/140 "$id")" -#videourl="$(youtube-dl -g -f 138/264/137/136/135/134 "$id")" +audiourl="$(youtube-dl -g -f 141/140 -- "$id")" +videourl="$(youtube-dl -g -f 138/264/137/136/135/134 -- "$id")" #vlc "$videourl" --input-slave "$audiourl" -#mpv --no-cache --demuxer-lavf-o=fflags=+ignidx "$videourl" --audiofile "$audiourl" +mpv --title "YouTube - $id" --no-cache --demuxer-lavf-o=fflags=+ignidx "$videourl" --audio-file "$audiourl" #mplayer "$videourl" -audiofile "$audiourl" # max 720p because youtube serves 1080p only via DASH (seperate audio/video streams) #urxvt -e bash -c "youtube-viewer -I \"http://youtube.com/watch?v=$id\"; sleep 5" -smplayer "http://youtube.com/watch?v=$id" +#smplayer "http://youtube.com/watch?v=$id" #smplayer $(youtube-dl -g ${id}) |