projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1848ca
)
mp-play: use mpv, play m4a
author
Stefan Huber <shuber@sthu.org>
Sun, 10 Nov 2013 12:39:14 +0000
(13:39 +0100)
committer
Stefan Huber <shuber@sthu.org>
Sun, 10 Nov 2013 12:39:14 +0000
(13:39 +0100)
mp-play
patch
|
blob
|
history
diff --git
a/mp-play
b/mp-play
index 96e08d9f909ba3b37c25df3ca1f079bb819e8e13..e41a80701b5c56c1d83d673dec8e27fcec1af627 100755
(executable)
--- a/
mp-play
+++ b/
mp-play
@@
-6,6
+6,9
@@
player="/usr/bin/mplayer"
if [ -x "/usr/bin/mplayer2" ]; then
player="/usr/bin/mplayer2"
fi
if [ -x "/usr/bin/mplayer2" ]; then
player="/usr/bin/mplayer2"
fi
+if [ -x "/usr/bin/mpv" ]; then
+ player="/usr/bin/mpv"
+fi
playeropts=""
$player -af help | grep -q bs2b && playeropts="${playeropts} -af-add bs2b"
playeropts=""
$player -af help | grep -q bs2b && playeropts="${playeropts} -af-add bs2b"
@@
-77,7
+80,7
@@
fi
# Create playlist
find "$@" -maxdepth $maxlevel -type f \
-iname "*.mp3" -or -iname "*.avi" -or -iname "*.flv" \
# Create playlist
find "$@" -maxdepth $maxlevel -type f \
-iname "*.mp3" -or -iname "*.avi" -or -iname "*.flv" \
- -or -iname "*.mp4" -or -iname "*.ogg" \
+ -or -iname "*.mp4" -or -iname "*.ogg"
-or -iname "*.m4a"
\
| sort > $playlist
[ "$optSorttime" == "1" ] && cat "$playlist" | xargs ls --sort=time | sponge "$playlist"
| sort > $playlist
[ "$optSorttime" == "1" ] && cat "$playlist" | xargs ls --sort=time | sponge "$playlist"