commit 6da6e71d88993576d1ddf44771f378d5cf266110
parent 7ade09c51dc69df1e520be2082d55b64534df0d7
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 13 Jan 2017 18:39:48 +0100
Made itunes_style_getter more accurate
Also searches using track name
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/itunes_style_getter b/itunes_style_getter
@@ -1,7 +1,9 @@
#!/bin/bash
artist=`osascript -e "tell application \"iTunes\" to return artist of selection"`;
album=`osascript -e "tell application \"iTunes\" to return album of selection"`;
-style=$(ruby /Users/alex/.bin/itunes_style_getter_helper.rb \"$artist\" \"$album\");
+name=`osascript -e "tell application \"iTunes\" to return name of selection"`;
+
+style=$(ruby /Users/alex/.bin/itunes_style_getter_helper.rb \"$artist\" \"$album\" \"$name\");
echo $style;
echo "Manual override?";
select yn in "Yes" "No"; do