mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-12-06 14:53:37 -08:00
fix playlist from file and add more logging
This commit is contained in:
8
ani-cli
8
ani-cli
@@ -484,9 +484,11 @@ while getopts 'hd:HlpadP:' OPT; do
|
||||
;;
|
||||
P)
|
||||
is_playlist=1
|
||||
playlist_file="$OPTARG"
|
||||
[ -z "$playlist_file" ] && die "Eneter in path to playlist"
|
||||
mpv "$playlist_file"
|
||||
# remove spaces from $OPTARG
|
||||
playlist_file="${OPTARG/ //}"
|
||||
[ -z "$playlist_file" ] && die "Enter in path to playlist"
|
||||
[ "$VERBOSE" -eq 1 ] && printf "%s\n" "$playlist_file"
|
||||
$player_fn "$playlist_file"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user