浏览代码

Let mocp shuffle

master
Arun Prakash Jana 4 年前
父节点
当前提交
187750556c
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. +3
    -4
      plugins/mocplay

+ 3
- 4
plugins/mocplay 查看文件

@@ -5,9 +5,7 @@
# Notes:
# - if selection is available, plays it, else plays the current file or directory
# - appends tracks and exits is MOC is running, else clears playlist and adds tracks
# - to randomize the order of files appended to the playlist, set SHUFFLE=1
# if you add a directory with many files when SHUFFLE=1 is set, it might take a very long time to finish!
# - max 100 files are added
# - to let mocp shuffle tracks, set SHUFFLE=1
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana, ath3
@@ -37,7 +35,8 @@ mocp_add ()
fi
done

echo "$arr2" | shuf -n 100 | xargs -n1 -d "\n" mocp -a
mocp -o shuffle
echo "$arr2" | xargs -d "\n" mocp -a
else
if [ "$resp" = "y" ]; then
xargs < "$selection" -0 mocp -a


正在加载...
取消
保存