Simon Persson 9 лет назад
Родитель
Сommit
906241b92e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/spirc.rs

+ 4 - 0
src/spirc.rs

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