From e2106e218661c0de29c7a406305010c741bb62e0 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Thu, 4 Nov 2021 23:04:05 -0700 Subject: [PATCH] fix playlist from file --- ani-cli | 1 + aniwrapper | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index edada7d..9b4b3b4 100755 --- a/ani-cli +++ b/ani-cli @@ -508,6 +508,7 @@ while getopts 'hd:HlpadP:' OPT; do playlist_file="$OPTARG" [ -z "$playlist_file" ] && die "Eneter in path to playlist" mpv "$playlist_file" + exit 0 esac done shift $((OPTIND - 1)) diff --git a/aniwrapper b/aniwrapper index 92fc1d4..e29ac88 100755 --- a/aniwrapper +++ b/aniwrapper @@ -53,7 +53,9 @@ elif [[ "$selection" == "4." ]]; then if [[ "$selection" == "1." ]]; then "$CMD" -p elif [[ "$selection" == "2." ]]; then - "$CMD" -P + choice=$(rofi -dmenu -config "$CFG_DIR/$CFG_FILE" -l 1 -i -p "Enter path to playlist") + [ -z "$choice" ] && choice="$HOME/Videos/sauce/" + "$CMD" -P "$choice" fi # selection=$(printf "%s\n" "$choice" | awk '{ print $1 }') elif [[ "$selection" == "2." ]]; then