Add songs to playlists with drag and drop

This commit is contained in:
Deluan
2021-10-01 10:37:05 -04:00
parent 2ab4647420
commit 6c3e45de41
14 changed files with 392 additions and 94 deletions
+2 -2
View File
@@ -214,8 +214,8 @@ func (r *playlistRepository) removeOrphans() error {
log.Debug(r.ctx, "Deleted tracks, now reordering", "id", pl.Id, "name", pl.Name, "deleted", n)
// To reorganize the playlist, just add an empty list of new tracks
trks := r.Tracks(pl.Id)
if err := trks.Add(nil); err != nil {
tracks := r.Tracks(pl.Id)
if _, err := tracks.Add(nil); err != nil {
return err
}
}