Send only songs from library which are available.

This commit is contained in:
Andreas 2013-12-03 12:19:46 +01:00
parent 7fdaff079d
commit b5ba1164af
1 changed files with 1 additions and 1 deletions

View File

@ -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;