浏览代码

Update mocplay to understand opener calls

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

+ 3
- 1
plugins/mocplay 查看文件

@@ -57,7 +57,9 @@ if [ ! -s "$selection" ] && [ -z "$1" ]; then
exit
fi

if [ -s "$selection" ]; then
if [ "$2" = "opener" ]; then
:
elif [ -s "$selection" ]; then
printf "Work with selection? Enter 'y' to confirm: "
read -r resp
fi


+ 1
- 1
plugins/mp3conv 查看文件

@@ -15,7 +15,7 @@ handle_multimedia() {

case "${mime}" in
audio/* | video/*)
ffmpeg -i "${file}" -vn -codec:a libmp3lame -q:a 2 "${outdir}"/"${file%.*}.mp3"
ffmpeg -i "${file}" -vn -codec:a libmp3lame -q:a 2 "${outdir}/${file%.*}.mp3"
;;
*)
;;


+ 2
- 2
plugins/nuke 查看文件

@@ -99,8 +99,8 @@ handle_pdf() {
}

handle_audio() {
if which mocp >/dev/null 2>&1; then
mocplay "${FPATH}" >/dev/null 2>&1
if which mocplay >/dev/null 2>&1; then
mocplay "${FPATH}" "opener" >/dev/null 2>&1
exit 0
elif which mpv >/dev/null 2>&1; then
mpv "${FPATH}" >/dev/null 2>&1 &


正在加载...
取消
保存