diff --git a/bin/playd.sh b/bin/playd.sh
--- a/bin/playd.sh
+++ b/bin/playd.sh
@@ -73,7 +73,7 @@ FORMAT_SPACES=${FORMAT_SPACES:-'yes'}
# to customise mplayers command line set PLAYD_MPLAYER_USER_OPTIONS environment variable
-readonly MPLAYER_CMD_GENERIC="$PLAYD_MPLAYER_USER_OPTIONS -really-quiet -msglevel all=-1 -nomsgmodule -idle -input file=$PLAYD_PIPE"
+readonly MPLAYER_CMD_GENERIC="$PLAYD_MPLAYER_USER_OPTIONS -msglevel all=-1 -nomsgmodule -idle -input file=$PLAYD_PIPE"
readonly MPLAYER_CMD="mplayer $MPLAYER_CMD_GENERIC"
readonly MPLAYER_SND_ONLY_CMD="mplayer -vo null $MPLAYER_CMD_GENERIC"
NOVID=0
@@ -375,21 +375,8 @@ playd_current_file_escaped() { # {{{1
playd_cat_playlist() { # {{{1
if [ -f "$PLAYD_PLAYLIST" ]; then
if [ $FORMAT_SHORTNAMES = 'yes' -o $FORMAT_SHORTNAMES = 'YES' ]; then
- if [ "$OS" = 'FreeBSD' ]; then
playd_longcat_playlist \
- | sed -r \
- -e 's#/.*/##' \
- -e 's#_# #g' \
- -e 's#^[ ]*##' \
- -e 's# ?- ?[0-9]{1,2} ?- ?# - #' \
- -e 's#-[0-9]{2}\.# - #' \
- -E -e "s#\.($PLAYD_FILE_FORMATS)\$##" \
- -E -e 's#\| (([0-9][ -]?)?[0-9]{1,2}( - |\. |-|\.| ))?#| #' \
- -E -e 's#\|\* (([0-9][ -]?)?[0-9]{1,2}( - |\. |-|\.| ))?#|* #'
- else
- # assuming Linux
- playd_longcat_playlist \
- | sed -r \
+ | sed $(case $OS in (*BSD) printf -- -E;; (*) printf -- -r;; esac) \
-e 's#/.*/##' \
-e 's#_# #g' \
-e 's#^[ ]*##' \
@@ -398,7 +385,6 @@ playd_cat_playlist() { # {{{1
-e "s#\.($PLAYD_FILE_FORMATS)\$##" \
-e 's#\| (([0-9][ -]?)?[0-9]{1,2}( - |\. |-|\.| ))?#| #' \
-e 's#\|\* (([0-9][ -]?)?[0-9]{1,2}( - |\. |-|\.| ))?#|* #'
- fi
else
if [ $FORMAT_SPACES = 'yes' -o $FORMAT_SPACES = 'YES' ]; then
playd_longcat_playlist | sed -e 's#/.*/##' -e 's#_# #g'