fix oopsie
This commit is contained in:
parent
3c4d3fd80e
commit
e2902e862d
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue