mpv: improved integration

master
Pierre Neidhardt 2013-10-13 10:43:30 +02:00
parent 759319e3bd
commit c66141a6d9
5 changed files with 5 additions and 20 deletions

View File

@ -6,6 +6,6 @@ var regex = new RegExp("http(.*)://www.youtube.com/watch\\?(.*&)*v=.*");
signals.connect("navigation", function (wv, frame, request) {
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;
});

View File

@ -137,9 +137,9 @@ map egs shell -w git status -uno %s
map ep shell -w mogrify -resize 50% %s
## Video
## Note that latin1 for MPlayer is cp1252 in reality.
map ev console shell mplayer "%f" -sub "%s"
map eV console shell mplayer "%f" -sub "%s" -subcp latin1
## Note that latin1 for mplayer/mpv is actually cp1252.
map ev console shell mpv "%f" --sub "%s"
map eV console shell mpv "%f" --sub "%s" --subcp latin1
## Subs
map es shell -w subdl %f

View File

@ -20,7 +20,6 @@ inkscape-pruned
lib32-sdl_mixer
lib32-smpeg
mutt-sidebar
openmw-git
package-query
pkgtools
scour

View File

@ -104,7 +104,7 @@ mime-types
mjpegtools
mkinitcpio
mpg123
mplayer2
mpv
mtools
mupdf
nano

View File

@ -30,7 +30,6 @@ bison
blas
boost-libs
bridge-utils
bullet
bzip2
ca-certificates
cairo
@ -43,7 +42,6 @@ chicken
chromium
chrpath
cloog
cmake
cmus
colord
compositeproto
@ -103,7 +101,6 @@ foomatic-db-engine
foomatic-filters
fortune-mod
freeglut
freeimage
freetype2
fribidi
fuse
@ -162,7 +159,6 @@ gstreamer0.10-ugly-plugins
gtkmm
gtkspell
gtk-update-icon-cache
guile
gutenprint
gzip
harfbuzz
@ -360,7 +356,6 @@ libtirpc
libtool
libtorrent
libtxc_dxtn
libunistring
libusb-compat
libusbx
libutempter
@ -447,12 +442,10 @@ mpg123
mpv
mtdev
mtools
mygui
namcap
nano
nawk
ncdu
ncftp
ncurses
netctl
nethogs
@ -467,11 +460,8 @@ nspr
nss
ntfs-3g
numlockx
nvidia-cg-toolkit
octave
odt2txt
ogre
ois
openal
openbox
opencore-amr
@ -534,12 +524,10 @@ python2-markupsafe
python2-notify
python2-setuptools
python-dbus-common
python-docutils
python-pyelftools
python-xdg
qhull
qpdf
qt4
quvi
randrproto
ranger
@ -684,7 +672,6 @@ xterm
xvidcore
xz
yajl
yasm
youtube-dl
zathura
zathura-djvu
@ -692,4 +679,3 @@ zathura-pdf-poppler
zathura-ps
zlib
zsh
zziplib