Browse Source

fix(frontend): fix stream enqueueing position

Miguel Ángel Moreno 1 year ago
parent
commit
4d5978efac
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/frontend/tubo/events.cljs

+ 2 - 1
src/frontend/tubo/events.cljs

@@ -292,7 +292,8 @@
                                    [::add-to-media-queue
                                     (conj {:service-color service-color} %)]])
                        streams)
-                  [:dispatch [::fetch-audio-player-stream (:url (first streams)) 0]]))}))
+                  [:dispatch [::fetch-audio-player-stream (:url (first streams))
+                              (count (:media-queue db))]]))}))
 
 (rf/reg-event-fx
  ::add-to-bookmarks