spam less

This commit is contained in:
psykose 2024-11-16 12:28:37 +01:00
parent 58c2251b50
commit ee532e5abb
Signed by: psykose
SSH key fingerprint: SHA256:pRMVjV3kRB6zl+wNx+sV8KoMnPqQAW6v8dNCxsCGZv8

View file

@ -394,7 +394,7 @@ mod imp {
let api = self.api.borrow(); let api = self.api.borrow();
Rc::clone(api.as_ref().unwrap()) Rc::clone(api.as_ref().unwrap())
}; };
for song in api.random_songs(500).await.unwrap().into_iter() { for song in api.random_songs(50).await.unwrap().into_iter() {
let song = Song::from_child(&self.obj(), &song); let song = Song::from_child(&self.obj(), &song);
self.mpv self.mpv
.command(["loadfile", &song.stream_url(), "append-play"]) .command(["loadfile", &song.stream_url(), "append-play"])