summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-09-30 18:47:25 +0200
committerRasmus Steinke <rasi@xssn.at>2017-09-30 18:47:25 +0200
commit2aa016751552e434e656b3c9cbc807438fb0462e (patch)
treead876e9b2cc92bb2825f397a011efb7d24d9fc63 /clerk
parenta209ed723a772d101df6216911d03b9fb4f7d97a (diff)
downloadperl-app-clerk-2aa016751552e434e656b3c9cbc807438fb0462e.tar.gz
perl-app-clerk-2aa016751552e434e656b3c9cbc807438fb0462e.tar.xz
fix tagging variable
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk4
1 files changed, 2 insertions, 2 deletions
diff --git a/clerk b/clerk
index d3d1898..382b478 100755
--- a/clerk
+++ b/clerk
@@ -537,8 +537,8 @@ sub mpd_rate_items {
my ($sel, $rating, $mode) = @_;
chomp $rating;
$rating = undef if $rating =~ /^Delete Rating/;
- if ($tagging eq "true") {
- $mpd->send_message('rating', "$uri\t$mode\t${rating}");
+ if ($rvar{tagging} eq "true") {
+ $mpd->send_message('rating', "$_\t$mode\t${rating}") for @{$_[0]};;
}
$mpd->sticker_value("song", $_, $mode, $rating) for @{$_[0]};
}