From a10ea891ebcd1bee4db417c0f188652fd77a6bfd Mon Sep 17 00:00:00 2001
From: AF-1 <>
Date: Mon, 13 Nov 2023 21:55:50 +0100
Subject: [PATCH] fix empty client VL warning
---
RatingsLight/Plugin.pm | 2 +-
RatingsLight/install.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/RatingsLight/Plugin.pm b/RatingsLight/Plugin.pm
index 2522608..1178545 100644
--- a/RatingsLight/Plugin.pm
+++ b/RatingsLight/Plugin.pm
@@ -2049,7 +2049,7 @@ sub initVirtualLibraries {
my $sqlVLstart = "insert or ignore into library_track (library, track) select '%s', tracks.id ";
my $sqlVLquickCount = "select count(tracks.id) ";
my $sqlVLcommon = "from tracks join tracks_persistent tracks_persistent on tracks_persistent.urlmd5 = tracks.urlmd5 and tracks_persistent.rating ";
- my $sqlVLsourceVL = " join library_track on library_track.track = tracks.id and library_track.library = \"$browsemenus_sourceVL_id\" ";
+ my $sqlVLsourceVL = " join library_track on library_track.track = tracks.id and library_track.library = \"$browsemenus_sourceVL_id\" " if defined($browsemenus_sourceVL_id) && $browsemenus_sourceVL_id ne '';
my $sqlVLend = " group by tracks.id";
my @libraries = ();
diff --git a/RatingsLight/install.xml b/RatingsLight/install.xml
index 4baed7e..1246010 100644
--- a/RatingsLight/install.xml
+++ b/RatingsLight/install.xml
@@ -3,7 +3,7 @@
afc9f784-9381-2021-5477-479eca380cf5
PLUGIN_RATINGSLIGHT
Plugins::RatingsLight::Plugin
- 2.4.9
+ 2.5.0
PLUGIN_RATINGSLIGHT_DESC
AF
Plugins::RatingsLight::Importer