Add new method for updating songs based on song ID

Show status updating database.

Fixes #750
This commit is contained in:
Jonas Kvinge
2021-09-19 15:41:36 +02:00
parent 120b18b399
commit d2d7f32c45
44 changed files with 650 additions and 194 deletions

View File

@@ -214,7 +214,7 @@ QList<PlaylistItemPtr> PlaylistBackend::GetPlaylistItems(const int playlist) {
}
QList<Song> PlaylistBackend::GetPlaylistSongs(const int playlist) {
SongList PlaylistBackend::GetPlaylistSongs(const int playlist) {
SongList songs;
@@ -230,7 +230,7 @@ QList<Song> PlaylistBackend::GetPlaylistSongs(const int playlist) {
q.BindValue(":playlist", playlist);
if (!q.Exec()) {
db_->ReportErrors(q);
return QList<Song>();
return SongList();
}
// it's probable that we'll have a few songs associated with the same CUE so we're caching results of parsing CUEs