summaryrefslogtreecommitdiff
path: root/songgrab
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-28 22:05:52 -0600
committerzachir <zachir@librem.one>2023-02-28 22:05:52 -0600
commitdf2356a3639c1262e6ea6534e6c69b0325514036 (patch)
tree93a9af84009dc27021fb386a83e788671f136757 /songgrab
parent20d778c95e7ea5f41e12f1b2f2d8d7a3c8de4abe (diff)
fix dmenu misspelling (there is no dmene=)
Diffstat (limited to 'songgrab')
-rwxr-xr-xsonggrab14
1 files changed, 14 insertions, 0 deletions
diff --git a/songgrab b/songgrab
index 879baac..82040e4 100755
--- a/songgrab
+++ b/songgrab
@@ -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