finalise i3blocks-music, fix spelling in duckduckget
authorAndrew Lorimer <andrew@lorimer.id.au>
Wed, 4 Jul 2018 04:28:29 +0000 (14:28 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Wed, 4 Jul 2018 04:28:29 +0000 (14:28 +1000)
duckduckget.sh
i3blocks-music.pl
index 3999cba57619dbd2b0a1ce6c45b59b288eccd2e3..f8a5ae55ff4b25da2d80f4ca7f0e3b456fc91946 100755 (executable)
@@ -11,7 +11,7 @@ filetype=""
 if (($# == 0 ))
        then
                printf  "\n\x1b[31mWrong number of arguments\x1b[0m\n\n"
 if (($# == 0 ))
        then
                printf  "\n\x1b[31mWrong number of arguments\x1b[0m\n\n"
-               printf "Usage: duckduckget SITE [FILETYPE] [DESTINATION] \n       where SITE is the domain to search for files\n             [FILETYPE] is extension without preceeding dot\n             [DESTINATION] is the output directory relative to working directory"
+               printf "Usage: duckduckget SITE [FILETYPE] [DESTINATION] \n       where SITE is the domain to search for files\n             [FILETYPE] is extension without preceding dot\n             [DESTINATION] is the output directory relative to working directory"
                exit 1
 fi
 
                exit 1
 fi
 
index 4d6ab2734744e8e9261967a8af70783adddb78c1..6a8cc72faef33b47c0aafcca39358a744667528e 100755 (executable)
@@ -27,7 +27,7 @@ my $artist = qx(playerctl $player_arg metadata artist);
 push(@metadata, $artist) if $artist;
 
 my $title = qx(playerctl $player_arg metadata title);
 push(@metadata, $artist) if $artist;
 
 my $title = qx(playerctl $player_arg metadata title);
-$title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*//;
+$title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*)//;
 push(@metadata, $title) if $title;
 
 # Print stuff
 push(@metadata, $title) if $title;
 
 # Print stuff