« get me outta code hell

restore queued tracks from playlist sources - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-03-16 23:38:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 19:17:03 -0300
commit8fd987bc0451f00e2eeeefc2aa6944b4806c9460 (patch)
treebd1ba5cd1df7700cd0f425519d258ea2d199ec5f
parent479cf8c7db13f6ed3cdfed5078ee5d1077dfa104 (diff)
restore queued tracks from playlist sources
not sure why i didnt do this before but it Seems To Work Now!
dog champ
-rw-r--r--socket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.js b/socket.js
index 67d4c92..c6c3d19 100644
--- a/socket.js
+++ b/socket.js
@@ -592,7 +592,7 @@ export function attachBackendToSocketClient(backend, client, {
             return
           case 'queue':
             if (QP) silenceEvents(QP, ['queue'], () => QP.queue(
-              restoreNewItem(command.topItem),
+              restoreNewItem(command.topItem, getPlaylistSources()),
               isItemRef(command.afterItem) ? restoreNewItem(command.afterItem, getPlaylistSources()) : command.afterItem,
               {
                 movePlayingTrack: command.opts.movePlayingTrack