feat: better music tracking and playlist control

This commit is contained in:
coolnsx
2023-09-08 00:12:42 +05:30
parent b20ca5f107
commit a1a04196c6
4 changed files with 20 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
down() {
[ -n "$debug" ] && printf "\033[1;32m %s\033[0m : %s\n" "$3" "$2" && return 0
info_$os "$3 links fetched.."
choice=$(printf "stream\ndownload\ncast\nnext mirror" | menu_$os "??")
choice=$(printf "stream\ndownload\ncast\nnext mirror" | menu_$os "??" '' "2")
[ -z "$choice" ] && exit 0
[ "$choice" = "stream" ] && player_$os "$2" "$title" && info_$os "opening $title" "mpv" && exit 0
[ "$choice" = "cast" ] && info_$os "casting $title" "podcast" && catt cast "$2" && exit 0