fix oopsie

This commit is contained in:
Erica Z 2024-11-04 11:14:15 +01:00
parent 3c4d3fd80e
commit e2902e862d

View file

@ -123,7 +123,12 @@ impl Playbin {
pub fn insert_entry(&self, index: usize, entry: Song) { pub fn insert_entry(&self, index: usize, entry: Song) {
let mut entries = self.entries.borrow_mut(); let mut entries = self.entries.borrow_mut();
self.mpv self.mpv
.command(["loadfile", &entry.stream_url(), "insert-at-play"]) .command([
"loadfile",
&entry.stream_url(),
"insert-at-play",
index.to_string(),
])
.unwrap(); .unwrap();
entries.insert(index, entry); entries.insert(index, entry);