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
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