Send only songs from library which are available.
(cherry picked from commit b5ba1164afe46ef783ef184b54149d982ecf921c)
This commit is contained in:
parent
44a154ef56
commit
a45296d414
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user