Browse files

When making new playlist, files should be sorted!

  • Loading branch information...
1 parent de1c448 commit 8ad23a7cc89525368e89cab31cbeed4ceb3ea191 Aldis Berjoza committed Dec 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/playd.sh
View
4 bin/playd.sh
@@ -33,7 +33,7 @@
# 1}}}
# project email: playd@bsdroot.lv
-readonly PLAYD_VERSION='1.19.0'
+readonly PLAYD_VERSION='1.19.1'
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'
@@ -155,7 +155,7 @@ playd_mk_playlist() { # {{{1
&& echo "$1" >> "$PLAYD_PLAYLIST.tmp" \
|| { file -ib "$1" | grep -q -E -e '^(audio|video)' && echo "$1" >> "$PLAYD_PLAYLIST.tmp"; }
elif [ -d "$1" ]; then
- find "$1" -type f | grep -E -i -e "(${PLAYD_FILE_FORMATS})$" >> "$PLAYD_PLAYLIST.tmp"
+ find "$1" -type f | grep -E -i -e "(${PLAYD_FILE_FORMATS})$" | sort >> "$PLAYD_PLAYLIST.tmp"
else
playd_die "What the hell: \"$1\""
fi

0 comments on commit 8ad23a7

Please sign in to comment.