diff --git a/src/main.sh b/src/main.sh index cc68ac2..7d4cdda 100755 --- a/src/main.sh +++ b/src/main.sh @@ -96,9 +96,9 @@ if [ "${1:-}" = "--play-release" ]; then sort_by([.pos, .number]) | map($base + "/" + .file)[]' >"$tmplist" if [ "${4:-}" ]; then - mpv_play_list "$tmplist" - else mpv_queue_list "$tmplist" + else + mpv_play_list "$tmplist" fi rm -f "$tmplist" exit 0 @@ -106,11 +106,10 @@ fi if [ "${1:-}" = "--play-recording" ]; then echo "Playing recording $2" >>/tmp/foo - mpv_play_file "$2" if [ "${3:-}" ]; then - mpv_play_file "$2" - else mpv_queue_file "$2" + else + mpv_play_file "$2" fi exit 0 fi