Permalink
Browse files

fix

  • Loading branch information...
1 parent 186ef67 commit ec7a64aa5f92cb09c50fe2989454cf6e921c2ec0 Aldis Berjoza committed Nov 20, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 bin/playd.sh
View
@@ -34,7 +34,7 @@
# project email: playd@bsdroot.lv
# 1}}}
-readonly PLAYD_VERSION='1.12.4'
+readonly PLAYD_VERSION='1.12.5'
readonly PLAYD_NAME="${0##*/}"
readonly PLAYD_FILE_FORMATS='mp3|flac|og[agxmv]|wv|aac|mp[421a]|wav|aif[cf]?|m4[abpr]|ape|mk[av]|avi|mpf|vob|di?vx|mpga?|mov|3gp|wm[av]|midi?'
readonly PLAYD_PLAYLIST_FORMATS='plst?|m3u8?|asx|xspf|ram|qtl|wax|wpl'
@@ -359,9 +359,7 @@ playd_current_conn() { # {{{1
playd_current_file_escaped() { # {{{1
# prints current file name, that mplayer is playing.
# this function prepares string for awk (adds escape sequences)
- playd_current_file | sed -e 's#/#\\\/#g' -e 's#\.#\\\.#g' -e 's#\[#\\\[#g' -e 's#\]#\\\]#g' \
- -e 's#)#\\\)#g' -e 's#(#\\\(#g' -e 's#\*#\\\*#g' -e 's#{#\\\{#g' -e 's#}#\\\}#g' \
- -e 's#+#\\\+#g' -e 's#?#\\\?#g'
+ playd_current_file | sed -e 's#[/.)(*{}+?$^]#\\&#g' -e 's#\[#\\\[#g' -e 's#\]#\\\]#g'
} # 1}}}
playd_cat_playlist() { # {{{1

0 comments on commit ec7a64a

Please sign in to comment.