Browse Source

Export the current queue.

Simon Persson 9 năm trước cách đây
mục cha
commit
906241b92e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/spirc.rs

+ 4 - 0
src/spirc.rs

@@ -169,6 +169,10 @@ impl SpircManager {
             .state(state)
             .send();
     }
+
+    pub fn get_queue(&self) -> Vec<SpotifyId> {
+        self.0.lock().unwrap().tracks.clone()
+    }
 }
 
 impl SpircInternal {