瀏覽代碼

Export the current queue.

Simon Persson 9 年之前
父節點
當前提交
906241b92e
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 {