mpv: improved integration
parent
759319e3bd
commit
c66141a6d9
|
@ -6,6 +6,6 @@ var regex = new RegExp("http(.*)://www.youtube.com/watch\\?(.*&)*v=.*");
|
||||||
|
|
||||||
signals.connect("navigation", function (wv, frame, request) {
|
signals.connect("navigation", function (wv, frame, request) {
|
||||||
if (wv.mainFrame == frame && regex.test(request.uri))
|
if (wv.mainFrame == frame && regex.test(request.uri))
|
||||||
system.spawn("sh -c 'mplayer \"$(youtube-dl -g " + request.uri + ")\"'");
|
system.spawn("sh -c 'mpv \"$(youtube-dl -g " + request.uri + ")\"'");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -137,9 +137,9 @@ map egs shell -w git status -uno %s
|
||||||
map ep shell -w mogrify -resize 50% %s
|
map ep shell -w mogrify -resize 50% %s
|
||||||
|
|
||||||
## Video
|
## Video
|
||||||
## Note that latin1 for MPlayer is cp1252 in reality.
|
## Note that latin1 for mplayer/mpv is actually cp1252.
|
||||||
map ev console shell mplayer "%f" -sub "%s"
|
map ev console shell mpv "%f" --sub "%s"
|
||||||
map eV console shell mplayer "%f" -sub "%s" -subcp latin1
|
map eV console shell mpv "%f" --sub "%s" --subcp latin1
|
||||||
|
|
||||||
## Subs
|
## Subs
|
||||||
map es shell -w subdl %f
|
map es shell -w subdl %f
|
||||||
|
|
|
@ -20,7 +20,6 @@ inkscape-pruned
|
||||||
lib32-sdl_mixer
|
lib32-sdl_mixer
|
||||||
lib32-smpeg
|
lib32-smpeg
|
||||||
mutt-sidebar
|
mutt-sidebar
|
||||||
openmw-git
|
|
||||||
package-query
|
package-query
|
||||||
pkgtools
|
pkgtools
|
||||||
scour
|
scour
|
||||||
|
|
|
@ -104,7 +104,7 @@ mime-types
|
||||||
mjpegtools
|
mjpegtools
|
||||||
mkinitcpio
|
mkinitcpio
|
||||||
mpg123
|
mpg123
|
||||||
mplayer2
|
mpv
|
||||||
mtools
|
mtools
|
||||||
mupdf
|
mupdf
|
||||||
nano
|
nano
|
||||||
|
|
|
@ -30,7 +30,6 @@ bison
|
||||||
blas
|
blas
|
||||||
boost-libs
|
boost-libs
|
||||||
bridge-utils
|
bridge-utils
|
||||||
bullet
|
|
||||||
bzip2
|
bzip2
|
||||||
ca-certificates
|
ca-certificates
|
||||||
cairo
|
cairo
|
||||||
|
@ -43,7 +42,6 @@ chicken
|
||||||
chromium
|
chromium
|
||||||
chrpath
|
chrpath
|
||||||
cloog
|
cloog
|
||||||
cmake
|
|
||||||
cmus
|
cmus
|
||||||
colord
|
colord
|
||||||
compositeproto
|
compositeproto
|
||||||
|
@ -103,7 +101,6 @@ foomatic-db-engine
|
||||||
foomatic-filters
|
foomatic-filters
|
||||||
fortune-mod
|
fortune-mod
|
||||||
freeglut
|
freeglut
|
||||||
freeimage
|
|
||||||
freetype2
|
freetype2
|
||||||
fribidi
|
fribidi
|
||||||
fuse
|
fuse
|
||||||
|
@ -162,7 +159,6 @@ gstreamer0.10-ugly-plugins
|
||||||
gtkmm
|
gtkmm
|
||||||
gtkspell
|
gtkspell
|
||||||
gtk-update-icon-cache
|
gtk-update-icon-cache
|
||||||
guile
|
|
||||||
gutenprint
|
gutenprint
|
||||||
gzip
|
gzip
|
||||||
harfbuzz
|
harfbuzz
|
||||||
|
@ -360,7 +356,6 @@ libtirpc
|
||||||
libtool
|
libtool
|
||||||
libtorrent
|
libtorrent
|
||||||
libtxc_dxtn
|
libtxc_dxtn
|
||||||
libunistring
|
|
||||||
libusb-compat
|
libusb-compat
|
||||||
libusbx
|
libusbx
|
||||||
libutempter
|
libutempter
|
||||||
|
@ -447,12 +442,10 @@ mpg123
|
||||||
mpv
|
mpv
|
||||||
mtdev
|
mtdev
|
||||||
mtools
|
mtools
|
||||||
mygui
|
|
||||||
namcap
|
namcap
|
||||||
nano
|
nano
|
||||||
nawk
|
nawk
|
||||||
ncdu
|
ncdu
|
||||||
ncftp
|
|
||||||
ncurses
|
ncurses
|
||||||
netctl
|
netctl
|
||||||
nethogs
|
nethogs
|
||||||
|
@ -467,11 +460,8 @@ nspr
|
||||||
nss
|
nss
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
numlockx
|
numlockx
|
||||||
nvidia-cg-toolkit
|
|
||||||
octave
|
octave
|
||||||
odt2txt
|
odt2txt
|
||||||
ogre
|
|
||||||
ois
|
|
||||||
openal
|
openal
|
||||||
openbox
|
openbox
|
||||||
opencore-amr
|
opencore-amr
|
||||||
|
@ -534,12 +524,10 @@ python2-markupsafe
|
||||||
python2-notify
|
python2-notify
|
||||||
python2-setuptools
|
python2-setuptools
|
||||||
python-dbus-common
|
python-dbus-common
|
||||||
python-docutils
|
|
||||||
python-pyelftools
|
python-pyelftools
|
||||||
python-xdg
|
python-xdg
|
||||||
qhull
|
qhull
|
||||||
qpdf
|
qpdf
|
||||||
qt4
|
|
||||||
quvi
|
quvi
|
||||||
randrproto
|
randrproto
|
||||||
ranger
|
ranger
|
||||||
|
@ -684,7 +672,6 @@ xterm
|
||||||
xvidcore
|
xvidcore
|
||||||
xz
|
xz
|
||||||
yajl
|
yajl
|
||||||
yasm
|
|
||||||
youtube-dl
|
youtube-dl
|
||||||
zathura
|
zathura
|
||||||
zathura-djvu
|
zathura-djvu
|
||||||
|
@ -692,4 +679,3 @@ zathura-pdf-poppler
|
||||||
zathura-ps
|
zathura-ps
|
||||||
zlib
|
zlib
|
||||||
zsh
|
zsh
|
||||||
zziplib
|
|
||||||
|
|
Loading…
Reference in New Issue