From e2902e862deb5a1928b5c29fd351715c7f4b1134 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Mon, 4 Nov 2024 11:14:15 +0100 Subject: [PATCH] fix oopsie --- src/playbin.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/playbin.rs b/src/playbin.rs index 4e32b93..8092708 100644 --- a/src/playbin.rs +++ b/src/playbin.rs @@ -123,7 +123,12 @@ impl Playbin { pub fn insert_entry(&self, index: usize, entry: Song) { let mut entries = self.entries.borrow_mut(); self.mpv - .command(["loadfile", &entry.stream_url(), "insert-at-play"]) + .command([ + "loadfile", + &entry.stream_url(), + "insert-at-play", + index.to_string(), + ]) .unwrap(); entries.insert(index, entry);