From 3395f8e0682f660d0515e4ad80f8bf29a331ead4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Tue, 26 Aug 2025 20:46:09 +0200 Subject: [PATCH] bugfix: play and queue --- src/main.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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