From 34848ef5d9fc737dba0876f120810675defd1e9c Mon Sep 17 00:00:00 2001 From: AF-1 <> Date: Sat, 14 Dec 2024 14:22:33 +0100 Subject: [PATCH] change method to get/set ratings --- RatingsLight/Plugin.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/RatingsLight/Plugin.pm b/RatingsLight/Plugin.pm index 0bc1640..bc8c137 100644 --- a/RatingsLight/Plugin.pm +++ b/RatingsLight/Plugin.pm @@ -2792,7 +2792,6 @@ sub writeRatingToDB { # confirm and log new rating value my $newTrackRating = getRatingFromDB($track); - if (defined $newTrackRating && $newTrackRating == $rating100ScaleValue) { main::DEBUGLOG && $log->is_debug && $log->debug('Rating successful. Track title: '.$track->title.' ## New rating = '.($rating100ScaleValue/20).' ('.$rating100ScaleValue.")\n"); unless ($dontlogthis) { @@ -2835,7 +2834,6 @@ sub getRatingFromDB { # use sqlite instead of LMS method in case library has tracks with identical MusicBrainz IDs main::DEBUGLOG && $log->is_debug && $log->debug('Trying to get rating with sqlite and url: '.$track->url); my $urlmd5 = $track->urlmd5 || md5_hex($track->url); - my $dbh = Slim::Schema->dbh; my $sqlstatement = "select rating from tracks_persistent where urlmd5 = \"$urlmd5\""; eval{