mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-08 16:22:10 +01:00
Send only songs from library which are available.
This commit is contained in:
parent
7fdaff079d
commit
b5ba1164af
@ -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…
Reference in New Issue
Block a user