Only show playlists where the user is allowed to add tracks when trying to add tracks (#329)

* Only show playlists where the user is allowed to add tracks

* Expose user_id from library and use it to reduce api calls
This commit is contained in:
André Andersson
2020-11-22 19:26:20 +01:00
committed by GitHub
parent 68d2bbd64f
commit d1211e6901
3 changed files with 8 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ pub struct Library {
pub playlists: Arc<RwLock<Vec<Playlist>>>,
pub shows: Arc<RwLock<Vec<Show>>>,
pub is_done: Arc<RwLock<bool>>,
user_id: Option<String>,
pub user_id: Option<String>,
ev: EventManager,
spotify: Arc<Spotify>,
pub cfg: Arc<Config>,