diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-09-30 18:47:25 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2017-09-30 18:47:25 +0200 |
commit | 2aa016751552e434e656b3c9cbc807438fb0462e (patch) | |
tree | ad876e9b2cc92bb2825f397a011efb7d24d9fc63 | |
parent | a209ed723a772d101df6216911d03b9fb4f7d97a (diff) | |
download | perl-app-clerk-2aa016751552e434e656b3c9cbc807438fb0462e.tar.gz perl-app-clerk-2aa016751552e434e656b3c9cbc807438fb0462e.tar.xz |
fix tagging variable
-rwxr-xr-x | clerk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]}; } |