Skip to content

Commit

Permalink
change method to get/set ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
AF-1 committed Dec 14, 2024
1 parent 03f5858 commit 34848ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions RatingsLight/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 34848ef

Please sign in to comment.