diff options
-rwxr-xr-x | bm | 2 | ||||
-rwxr-xr-x | bsc | 2 | ||||
-rwxr-xr-x | fdc | 2 | ||||
-rwxr-xr-x | ffc | 2 | ||||
-rwxr-xr-x | lwc | 2 | ||||
-rwxr-xr-x | qbc | 2 | ||||
-rwxr-xr-x | songgrab | 14 |
7 files changed, 20 insertions, 6 deletions
@@ -84,7 +84,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -26,7 +26,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -26,7 +26,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -26,7 +26,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -26,7 +26,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -26,7 +26,7 @@ if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then DMENU="bemenu" elif [ -n "$DISPLAY" ]; then - DMENU="dmene" + DMENU="dmenu" else print "Can't tell if Wayland or X; what gives?\n" exit 1 @@ -12,6 +12,19 @@ for i in $@; do [ -n "$GETTRACKNUM" ] && TRACKNUM="$i" && unset GETTRACKNUM [ -n "$GETYEAR" ] && YEAR="$i" && unset GETYEAR case "$i" in + "-h") + printf "Grabs music (either individual songs or albums) and formats it.\n" + printf "\n" + printf " -s | downloads and formats a single song.\n" + printf " -l | downloads and formats a whole album.\n" + printf " -p | downloads and formats an album (via a playlist).\n" + printf " -u | the url to download.\n" + printf " -a | the artist name (to tag every song with).\n" + printf " -A | the album name (to tag every song with).\n" + printf " -t | the title of the song (if downloading a single song).\n" + printf " -T | the number of the track in its album (if downloading a single song).\n" + printf " -y | the year of release.\n" + exit 0 ;; "-s") SPLITTER_SELECTION="s" ;; @@ -45,6 +58,7 @@ done ARTIST=`echo $ARTIST | sed 's/^ //'` ALBUM=`echo $ALBUM | sed 's/^ //'` TITLE=`echo $TITLE | sed 's/^ //'` + printf "Received Tags: Artist: $ARTIST Album: $ALBUM |