Jelajahi Sumber

Export the current queue.

Simon Persson 9 tahun lalu
induk
melakukan
906241b92e
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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 {