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