mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
fix playlist from file
This commit is contained in:
parent
cc9a0a870f
commit
e2106e2186
1
ani-cli
1
ani-cli
@ -508,6 +508,7 @@ while getopts 'hd:HlpadP:' OPT; do
|
|||||||
playlist_file="$OPTARG"
|
playlist_file="$OPTARG"
|
||||||
[ -z "$playlist_file" ] && die "Eneter in path to playlist"
|
[ -z "$playlist_file" ] && die "Eneter in path to playlist"
|
||||||
mpv "$playlist_file"
|
mpv "$playlist_file"
|
||||||
|
exit 0
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $((OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
|
@ -53,7 +53,9 @@ elif [[ "$selection" == "4." ]]; then
|
|||||||
if [[ "$selection" == "1." ]]; then
|
if [[ "$selection" == "1." ]]; then
|
||||||
"$CMD" -p
|
"$CMD" -p
|
||||||
elif [[ "$selection" == "2." ]]; then
|
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
|
fi
|
||||||
# selection=$(printf "%s\n" "$choice" | awk '{ print $1 }')
|
# selection=$(printf "%s\n" "$choice" | awk '{ print $1 }')
|
||||||
elif [[ "$selection" == "2." ]]; then
|
elif [[ "$selection" == "2." ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user