From a45296d414e98e5408df05d5bfc6f385a83c14c4 Mon Sep 17 00:00:00 2001 From: Andreas Date: Tue, 3 Dec 2013 12:19:46 +0100 Subject: [PATCH] Send only songs from library which are available. (cherry picked from commit b5ba1164afe46ef783ef184b54149d982ecf921c) --- src/networkremote/outgoingdatacreator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networkremote/outgoingdatacreator.cpp b/src/networkremote/outgoingdatacreator.cpp index 4d85fdc34..bf9884460 100644 --- a/src/networkremote/outgoingdatacreator.cpp +++ b/src/networkremote/outgoingdatacreator.cpp @@ -726,7 +726,7 @@ void OutgoingDataCreator::SendLibrary(RemoteClient *client) { app_->database()->AttachDatabaseOnDbConnection("songs_export", adb, db); // Copy the content of the song table to this temporary database - QSqlQuery q(QString("create table songs_export.songs as SELECT * FROM songs;"), db); + QSqlQuery q(QString("create table songs_export.songs as SELECT * FROM songs where unavailable = 0;"), db); if (app_->database()->CheckErrors(q)) return;