Explorar o código

Export the current queue.

Simon Persson %!s(int64=9) %!d(string=hai) anos
pai
achega
906241b92e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 {