Updated album command(now with optional argument)

This commit is contained in:
Medvidek77 2025-03-20 20:46:02 +01:00
parent 06e2d2df77
commit 3015d24698

View file

@ -285,7 +285,14 @@ elif [ "$1" = "download" ]; then
downloadTrack downloadTrack
fi fi
elif [ "$1" = "album" ]; then elif [ "$1" = "album" ]; then
searchAlbum if [ "$#" -ge 2 ]; then
shift
jsw="$*"
searchAlbum "$jsw"
else
searchAlbum
fi
elif [ "$1" = "help" ]; then elif [ "$1" = "help" ]; then
echo "<MODE>" echo "<MODE>"
echo "" echo ""
@ -293,11 +300,11 @@ elif [ "$1" = "help" ]; then
echo "" echo ""
echo "<COMMANDS>" echo "<COMMANDS>"
echo "" echo ""
echo "search {text}-optional -> search any song" echo "search {track_name}-optional -> search any song"
echo "" echo ""
echo "download {song_id}-optional -> download any song" echo "download {song_id}-optional -> download any song"
echo "" echo ""
echo "album -> search and download any album" echo "album {album_name}-> search and download any album"
echo "" echo ""
echo "help -> print this message and exit" echo "help -> print this message and exit"
else else