update quality selection menu to match aniwapper version

This commit is contained in:
ksyasuda 2022-01-31 22:59:55 -08:00
parent e8809444e3
commit 7ae041e95a

View File

@ -980,9 +980,10 @@ main() {
Q)
qualities="best|1080p|720p|480p|360p|worst"
if ((IS_ROFI == 1)); then
quality=$(rofi -dmenu -dpi "$DPI" -config "$ROFI_CFG" \
-i -l 6 -only-match -sep '|' \
-mesg "Choose quality:" <<< "$qualities")
choice=$(rofi -dmenu -dpi "$DPI" -config "$ROFI_CFG" \
-i -l 5 -only-match -sep '|' \
-p "Choose quality:" <<< "1. best (default)|2. 1080p|3. 720p|4. 360p|5. worst")
quality=$(awk '{ print $2 }' <<< "$choice")
else
printf "${c_blue}Choose quality: [$qualities]:$c_reset "
read -r quality