summaryrefslogtreecommitdiffstats
path: root/clerk_rating_client
diff options
context:
space:
mode:
Diffstat (limited to 'clerk_rating_client')
-rwxr-xr-xclerk_rating_client10
1 files changed, 5 insertions, 5 deletions
diff --git a/clerk_rating_client b/clerk_rating_client
index 1da2bb2..8c74c57 100755
--- a/clerk_rating_client
+++ b/clerk_rating_client
@@ -64,12 +64,12 @@ sub track_rating {
if ($uri =~ /.*.flac$/) {
if ($mode eq "rating") {
print ":: tagging track \"${title}\" by \"${artist}\" with rating of \"${rating}\"\n";
- system('metaflac', '--remove-tag=RATING', "${music_root}/${uri}");
- system('metaflac', "--set-tag=RATING=${rating}", "${music_root}/${uri}");
+ system('metaflac', '--remove-tag=RATING', "${music_root}/${uri}");
+ system('metaflac', "--set-tag=RATING=${rating}", "${music_root}/${uri}");
} elsif ($mode eq "albumrating") {
print ":: tagging track \"${title}\" by \"${albumartist}\" with albumrating of \"${rating}\"\n";
- system('metaflac', '--remove-tag=ALBUMRATING', "${music_root}/${uri}");
- system('metaflac', "--set-tag=ALBUMRATING=${rating}", "${music_root}/${uri}");
+ system('metaflac', '--remove-tag=ALBUMRATING', "${music_root}/${uri}");
+ system('metaflac', "--set-tag=ALBUMRATING=${rating}", "${music_root}/${uri}");
}
}
elsif ($uri =~ /.*.mp3$/) {
@@ -95,7 +95,7 @@ sub sync_ratings {
my @available_stickers = $mpd->sticker_find('song', 'rating', '');
foreach my $rated_song (@available_stickers) {
push @sticker_uris, "$rated_song->{file}";
- }
+ }
my @absolute;
find({