aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-11-01 19:27:03 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-11-01 19:34:46 +0100
commit4d5978efac1edf8e4c195f74d4afc4f82ec33077 (patch)
tree2df453b3c4b2c1600e371d41bdabe753f0723f78
parent783ad76b21626ad30625d22afe384e089d471f2b (diff)
fix(frontend): fix stream enqueueing position
-rw-r--r--src/frontend/tubo/events.cljs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/tubo/events.cljs b/src/frontend/tubo/events.cljs
index 79c9e93..ae14b1b 100644
--- a/src/frontend/tubo/events.cljs
+++ b/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