fix playlist from file

This commit is contained in:
ksyasuda 2021-11-04 23:04:05 -07:00
parent cc9a0a870f
commit e2106e2186
2 changed files with 4 additions and 1 deletions

View File

@ -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))

View File

@ -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